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

Commit1af818b

Browse files
committed
1. "#ifdef 0" is bad C. ifdef is for checking a macro and 0 is
an illegal macro name. Correct syntax is "#if 0". This is in...From: Darren King <darrenk@insightdist.com>
1 parent7a33578 commit1af818b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

‎src/backend/libpq/crypt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ int crypt_getloginfo(const char* user, char** passwd, char** valuntil) {
220220

221221
/*-------------------------------------------------------------------------*/
222222

223-
#ifdef0
223+
#if0
224224
MsgTypecrypt_salt(constchar*user) {
225225

226226
char*passwd;

‎src/backend/port/getrusage.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
/* $Id: getrusage.c,v 1.3 1997/12/19 13:34:27 scrappy Exp $ */
1+
/* $Id: getrusage.c,v 1.4 1998/02/01 00:02:59 scrappy Exp $ */
22

33
#include<math.h>/* for pow() prototype */
44

55
#include<errno.h>
66
#include"rusagestub.h"
77
#include"port-protos.h"
88

9-
#ifdef0/* this is from univel port ... how does compiler define? */
10-
/* same for i386_solaris port ... how does compiler define? */
11-
/* same for sco port ... how does compiler define? */
12-
/* same for sparc_solaris port ... how does compiler define? */
13-
/* same for svr4 port ... how does compiler define? */
9+
#if0/* this is from univel port ... how does compiler define? */
10+
/* same for i386_solaris port ... how does compiler define? */
11+
/* same for sco port ... how does compiler define? */
12+
/* same for sparc_solaris port ... how does compiler define? */
13+
/* same for svr4 port ... how does compiler define? */
1414
int
1515
getrusage(intwho,structrusage*rusage)
1616
{
@@ -53,7 +53,7 @@ getrusage(int who, struct rusage * rusage)
5353
}
5454
#endif
5555

56-
#ifdef0/* this is for hpux port ... how does compiler define? */
56+
#if0/* this is for hpux port ... how does compiler define? */
5757
getrusage(intwho,structrusage*ru)
5858
{
5959
return (syscall(SYS_GETRUSAGE,who,ru));

‎src/include/libpq/crypt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ extern int pwd_cache_count;
2121

2222
externchar*crypt_getpwdfilename(void);
2323
externchar*crypt_getpwdreloadfilename(void);
24-
#ifdef0
24+
#if0
2525
externMsgTypecrypt_salt(constchar*user);
2626
#endif
2727
externintcrypt_verify(Port*port,constchar*user,constchar*pgpass);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp