Commit 178ec6f4 authored by Tom Lane's avatar Tom Lane

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.
parent 81cca218
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment