Merge /u/jrubio/cdesktopenv/ branch discarded-qualifiers into master

https://sourceforge.net/p/cdesktopenv/code/merge-requests/17/
This commit is contained in:
Jon Trulson
2019-10-13 17:09:04 +00:00
9 changed files with 19 additions and 20 deletions

View File

@@ -33,7 +33,7 @@
#define INT_MESSAGE5 " The connection was probably broken by a server shudown or KillClient.\r\n"
static int PrintXError(Display *dpy, XErrorEvent *event, FILE *fp);
static char *SysErrorMsg(int n);
static const char *SysErrorMsg(int n);
/* Error Handlers */
static int XIOError(Display *dpy);
@@ -100,17 +100,12 @@ XIOError(
* FUNCTION:
* RETURNS:
*/
static char *
static const char *
SysErrorMsg(
int n
)
{
#if !defined(__linux__) && !defined(CSRG_BASED)
extern char *sys_errlist[];
extern int sys_nerr;
#endif
char *s = ((n >= 0 && n < sys_nerr) ? sys_errlist[n] : "unknown error");
return (s ? s : "no such error");
return strerror(n);
}
/*