replace deprecated sys_errlist[errno] by call to strerror(errno)

This commit is contained in:
Holger Vogt 2018-10-14 12:21:02 +02:00
parent 0643a6eb57
commit 25cdf95262
1 changed files with 2 additions and 2 deletions

View File

@ -280,7 +280,7 @@ extern int tcl_fprintf(FILE *f, const char *format, ...);
#define fprintf tcl_fprintf
#undef perror
#define perror(string) fprintf(stderr,"%s: %s\n",string,sys_errlist[errno])
#define perror(string) fprintf(stderr, "%s: %s\n", string, strerror(errno))
#elif defined SHARED_MODULE
@ -307,7 +307,7 @@ extern void SetAnalyse(char *analyse, int percent);
#define fprintf sh_fprintf
#undef perror
#define perror(string) fprintf(stderr, "%s: %s\n", string, sys_errlist[errno])
#define perror(string) fprintf(stderr, "%s: %s\n", string, strerror(errno))
#undef fputs
#define fputs sh_fputs