summaryrefslogtreecommitdiff
path: root/lib/libc/time/zic.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2008-01-07 01:09:38 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2008-01-07 01:09:38 +0000
commitd43baef7aecad5b8a465e8a723b5897ddf157172 (patch)
tree20ff8bb68e431ed3143a612007cebcbc2c576b2e /lib/libc/time/zic.c
parent07cb9de5b8462fe0de9085d0637e2d48ee26bbc1 (diff)
update to tzcode2007k from elsie.nci.nih.gov
Diffstat (limited to 'lib/libc/time/zic.c')
-rw-r--r--lib/libc/time/zic.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/lib/libc/time/zic.c b/lib/libc/time/zic.c
index 8ba884209bf..2d6facacbf1 100644
--- a/lib/libc/time/zic.c
+++ b/lib/libc/time/zic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zic.c,v 1.30 2007/12/29 22:26:51 millert Exp $ */
+/* $OpenBSD: zic.c,v 1.31 2008/01/07 01:09:37 millert Exp $ */
/*
** This file is in the public domain, so clarified as of
** 2006-07-17 by Arthur David Olson.
@@ -163,10 +163,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;
@@ -408,19 +404,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;