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.
This commit is contained in:
Tom Lane 2004-08-11 16:53:28 +00:00
parent 81cca21818
commit 178ec6f40e
1 changed files with 2 additions and 19 deletions

View File

@ -3,7 +3,7 @@
* 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov). * 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).
* *
* IDENTIFICATION * 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" #include "postgres.h"
@ -152,10 +152,6 @@ static void usage(void);
static void writezone(const char *name); static void writezone(const char *name);
static int yearistype(int year, const char *type); static int yearistype(int year, const char *type);
#ifndef HAVE_STRERROR
static char *strerror(int);
#endif
static int charcnt; static int charcnt;
static int errors; static int errors;
static const char *filename; static const char *filename;
@ -375,8 +371,7 @@ static char roll[TZ_MAX_LEAPS];
*/ */
static char * static char *
memcheck(ptr) memcheck(char *ptr)
char *const ptr;
{ {
if (ptr == NULL) if (ptr == NULL)
{ {
@ -398,18 +393,6 @@ char *const ptr;
* Error handling. * 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 static void
eats(const char *name, const int num, const char *rname, const int rnum) eats(const char *name, const int num, const char *rname, const int rnum)
{ {