diff options
author | Marc G. Fournier <scrappy@hub.org> | 1998-02-01 00:02:59 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1998-02-01 00:02:59 +0000 |
commit | 1af818b8bfc9127167ac7058c2c625b07f12271a (patch) | |
tree | 88f0d877f933f57d847a77ddd43d8e1376b9e0d8 | |
parent | 7a335784363b7447d1da26b11878f8e105f9fbca (diff) | |
download | postgresql-1af818b8bfc9127167ac7058c2c625b07f12271a.tar.gz postgresql-1af818b8bfc9127167ac7058c2c625b07f12271a.zip |
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>
-rw-r--r-- | src/backend/libpq/crypt.c | 2 | ||||
-rw-r--r-- | src/backend/port/getrusage.c | 14 | ||||
-rw-r--r-- | src/include/libpq/crypt.h | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/backend/libpq/crypt.c b/src/backend/libpq/crypt.c index b87b05cd426..dbda5e3e2b5 100644 --- a/src/backend/libpq/crypt.c +++ b/src/backend/libpq/crypt.c @@ -220,7 +220,7 @@ int crypt_getloginfo(const char* user, char** passwd, char** valuntil) { /*-------------------------------------------------------------------------*/ -#ifdef 0 +#if 0 MsgType crypt_salt(const char* user) { char* passwd; diff --git a/src/backend/port/getrusage.c b/src/backend/port/getrusage.c index 2859bb1af22..48469919e66 100644 --- a/src/backend/port/getrusage.c +++ b/src/backend/port/getrusage.c @@ -1,4 +1,4 @@ -/* $Id: getrusage.c,v 1.3 1997/12/19 13:34:27 scrappy Exp $ */ +/* $Id: getrusage.c,v 1.4 1998/02/01 00:02:59 scrappy Exp $ */ #include <math.h> /* for pow() prototype */ @@ -6,11 +6,11 @@ #include "rusagestub.h" #include "port-protos.h" -#ifdef 0 /* this is from univel port ... how does compiler define? */ - /* same for i386_solaris port ... how does compiler define? */ - /* same for sco port ... how does compiler define? */ - /* same for sparc_solaris port ... how does compiler define? */ - /* same for svr4 port ... how does compiler define? */ +#if 0 /* this is from univel port ... how does compiler define? */ + /* same for i386_solaris port ... how does compiler define? */ + /* same for sco port ... how does compiler define? */ + /* same for sparc_solaris port ... how does compiler define? */ + /* same for svr4 port ... how does compiler define? */ int getrusage(int who, struct rusage * rusage) { @@ -53,7 +53,7 @@ getrusage(int who, struct rusage * rusage) } #endif -#ifdef 0 /* this is for hpux port ... how does compiler define? */ +#if 0 /* this is for hpux port ... how does compiler define? */ getrusage(int who, struct rusage * ru) { return (syscall(SYS_GETRUSAGE, who, ru)); diff --git a/src/include/libpq/crypt.h b/src/include/libpq/crypt.h index 77d4fb7d03b..b1da83ac603 100644 --- a/src/include/libpq/crypt.h +++ b/src/include/libpq/crypt.h @@ -21,7 +21,7 @@ extern int pwd_cache_count; extern char* crypt_getpwdfilename(void); extern char* crypt_getpwdreloadfilename(void); -#ifdef 0 +#if 0 extern MsgType crypt_salt(const char* user); #endif extern int crypt_verify(Port* port, const char* user, const char* pgpass); |