all: remove deprecated sys_errlist[] and replace with ANSI C strerror()

This commit is contained in:
Peter Howkins
2020-11-02 05:30:08 +00:00
parent 0f3bcae232
commit 67f62e5a8a
12 changed files with 8 additions and 80 deletions

View File

@@ -72,10 +72,6 @@
static Bool lookForButton(Display *, XEvent *, XPointer);
#if !defined(__linux__) && !defined(CSRG_BASED)
extern char *sys_errlist[];
#endif
extern int drag_load_proc(char*, Calendar *);
static char dnd_filename[20];

View File

@@ -306,10 +306,7 @@ syserr(char *msg, int a1, int a2, int a3)
#if 0
/* print the error, if any */
if (saveerr != 0) {
if (saveerr < 0 || saveerr > sys_nerr)
(void) fprintf(stderr, ":Unknown error %d", saveerr);
else
(void) fprintf(stderr, ":%s", sys_errlist[saveerr]);
(void) fprintf(stderr, ":%s", strerror(saveerr));
}
#endif