Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1af818b

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 parent 7a33578 commit 1af818b

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-
#ifdef 0
223+
#if 0
224224
MsgType crypt_salt(const char* 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-
#ifdef 0 /* 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+
#if 0 /* 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(int who, struct rusage * rusage)
1616
{
@@ -53,7 +53,7 @@ getrusage(int who, struct rusage * rusage)
5353
}
5454
#endif
5555

56-
#ifdef 0 /* this is for hpux port ... how does compiler define? */
56+
#if 0 /* this is for hpux port ... how does compiler define? */
5757
getrusage(int who, struct rusage * 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
extern char* crypt_getpwdfilename(void);
2323
extern char* crypt_getpwdreloadfilename(void);
24-
#ifdef 0
24+
#if 0
2525
extern MsgType crypt_salt(const char* user);
2626
#endif
2727
extern int crypt_verify(Port* port, const char* user, const char* pgpass);

0 commit comments

Comments
 (0)