diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-08-11 16:53:28 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-08-11 16:53:28 +0000 |
commit | 178ec6f40e15f0bd161b5b30d77c8c6bcb61b649 (patch) | |
tree | 50aa66b2766482c5152bf5681a8e54f5a882f36c /src | |
parent | 81cca2181843ec1200ed67bb7f0f142037ddde06 (diff) | |
download | postgresql-178ec6f40e15f0bd161b5b30d77c8c6bcb61b649.tar.gz postgresql-178ec6f40e15f0bd161b5b30d77c8c6bcb61b649.zip |
Fix function definition that somehow missed being ANSI-fied, and align
it with previous prototype to suppress complaints from picky compilers,
per report from Scott Bailey. Also, remove substitute strerror
definition --- not needed, since we link this with libpgport.
Diffstat (limited to 'src')
-rw-r--r-- | src/timezone/zic.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/timezone/zic.c b/src/timezone/zic.c index 38fc4524374..ffd9239c28d 100644 --- a/src/timezone/zic.c +++ b/src/timezone/zic.c @@ -3,7 +3,7 @@ * 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov). * * IDENTIFICATION - * $PostgreSQL: pgsql/src/timezone/zic.c,v 1.10 2004/08/08 05:19:44 momjian Exp $ + * $PostgreSQL: pgsql/src/timezone/zic.c,v 1.11 2004/08/11 16:53:28 tgl Exp $ */ #include "postgres.h" @@ -152,10 +152,6 @@ static void usage(void); static void writezone(const char *name); static int yearistype(int year, const char *type); -#ifndef HAVE_STRERROR -static char *strerror(int); -#endif - static int charcnt; static int errors; static const char *filename; @@ -375,8 +371,7 @@ static char roll[TZ_MAX_LEAPS]; */ static char * -memcheck(ptr) -char *const ptr; +memcheck(char *ptr) { if (ptr == NULL) { @@ -398,18 +393,6 @@ char *const ptr; * Error handling. */ -#ifndef HAVE_STRERROR -static char * -strerror(int errnum) -{ - extern char *sys_errlist[]; - extern int sys_nerr; - - return (errnum > 0 && errnum <= sys_nerr) ? - sys_errlist[errnum] : _("Unknown system error"); -} -#endif - static void eats(const char *name, const int num, const char *rname, const int rnum) { |