Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit178ec6f

Browse files
committed
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 strerrordefinition --- not needed, since we link this with libpgport.
1 parent81cca21 commit178ec6f

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

‎src/timezone/zic.c

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).
44
*
55
* IDENTIFICATION
6-
* $PostgreSQL: pgsql/src/timezone/zic.c,v 1.10 2004/08/08 05:19:44 momjian Exp $
6+
* $PostgreSQL: pgsql/src/timezone/zic.c,v 1.11 2004/08/11 16:53:28 tgl Exp $
77
*/
88

99
#include"postgres.h"
@@ -152,10 +152,6 @@ static void usage(void);
152152
staticvoidwritezone(constchar*name);
153153
staticintyearistype(intyear,constchar*type);
154154

155-
#ifndefHAVE_STRERROR
156-
staticchar*strerror(int);
157-
#endif
158-
159155
staticintcharcnt;
160156
staticinterrors;
161157
staticconstchar*filename;
@@ -375,8 +371,7 @@ static char roll[TZ_MAX_LEAPS];
375371
*/
376372

377373
staticchar*
378-
memcheck(ptr)
379-
char*constptr;
374+
memcheck(char*ptr)
380375
{
381376
if (ptr==NULL)
382377
{
@@ -398,18 +393,6 @@ char *const ptr;
398393
* Error handling.
399394
*/
400395

401-
#ifndefHAVE_STRERROR
402-
staticchar*
403-
strerror(interrnum)
404-
{
405-
externchar*sys_errlist[];
406-
externintsys_nerr;
407-
408-
return (errnum>0&&errnum <=sys_nerr) ?
409-
sys_errlist[errnum] :_("Unknown system error");
410-
}
411-
#endif
412-
413396
staticvoid
414397
eats(constchar*name,constintnum,constchar*rname,constintrnum)
415398
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp