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>
This commit is contained in:
Marc G. Fournier 1998-02-01 00:02:59 +00:00
parent 7a33578436
commit 1af818b8bf
3 changed files with 9 additions and 9 deletions

View File

@ -220,7 +220,7 @@ int crypt_getloginfo(const char* user, char** passwd, char** valuntil) {
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
#ifdef 0 #if 0
MsgType crypt_salt(const char* user) { MsgType crypt_salt(const char* user) {
char* passwd; char* passwd;

View File

@ -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 */ #include <math.h> /* for pow() prototype */
@ -6,7 +6,7 @@
#include "rusagestub.h" #include "rusagestub.h"
#include "port-protos.h" #include "port-protos.h"
#ifdef 0 /* this is from univel 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 i386_solaris port ... how does compiler define? */
/* same for sco port ... how does compiler define? */ /* same for sco port ... how does compiler define? */
/* same for sparc_solaris port ... how does compiler define? */ /* same for sparc_solaris port ... how does compiler define? */
@ -53,7 +53,7 @@ getrusage(int who, struct rusage * rusage)
} }
#endif #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) getrusage(int who, struct rusage * ru)
{ {
return (syscall(SYS_GETRUSAGE, who, ru)); return (syscall(SYS_GETRUSAGE, who, ru));

View File

@ -21,7 +21,7 @@ extern int pwd_cache_count;
extern char* crypt_getpwdfilename(void); extern char* crypt_getpwdfilename(void);
extern char* crypt_getpwdreloadfilename(void); extern char* crypt_getpwdreloadfilename(void);
#ifdef 0 #if 0
extern MsgType crypt_salt(const char* user); extern MsgType crypt_salt(const char* user);
#endif #endif
extern int crypt_verify(Port* port, const char* user, const char* pgpass); extern int crypt_verify(Port* port, const char* user, const char* pgpass);