mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2025-12-06 16:12:36 +00:00
HAVE_STRERROR goes
SCCS-file: zic.c SCCS-SID: 8.17
This commit is contained in:
committed by
Paul Eggert
parent
69ef9e0816
commit
fa2be254d7
17
zic.c
17
zic.c
@ -160,10 +160,6 @@ static void usage(void);
|
||||
static void writezone(const char * name, const char * string);
|
||||
static int yearistype(int year, const char * type);
|
||||
|
||||
#if !HAVE_STRERROR
|
||||
static char * strerror(int);
|
||||
#endif /* !HAVE_STRERROR */
|
||||
|
||||
static int charcnt;
|
||||
static int errors;
|
||||
static const char * filename;
|
||||
@ -405,19 +401,6 @@ char * const ptr;
|
||||
** Error handling.
|
||||
*/
|
||||
|
||||
#if !HAVE_STRERROR
|
||||
static char *
|
||||
strerror(errnum)
|
||||
int errnum;
|
||||
{
|
||||
extern char * sys_errlist[];
|
||||
extern int sys_nerr;
|
||||
|
||||
return (errnum > 0 && errnum <= sys_nerr) ?
|
||||
sys_errlist[errnum] : _("Unknown system error");
|
||||
}
|
||||
#endif /* !HAVE_STRERROR */
|
||||
|
||||
static void
|
||||
eats(name, num, rname, rnum)
|
||||
const char * const name;
|
||||
|
||||
Reference in New Issue
Block a user