Use -fno-builtin-log so gcc doesn't get ideas about using a math function

to log data.  Clean up an unused variable that was hidden by the WARNS?=2
being commented out.  Uncomment it now that it compiles cleanly again.
This commit is contained in:
Peter Wemm 2003-10-26 05:54:07 +00:00
parent 88b30ea68c
commit 3bda2f43af
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121555
2 changed files with 3 additions and 2 deletions

View File

@ -6,9 +6,10 @@ MAN= inetd.8
MLINKS= inetd.8 inetd.conf.5
SRCS= inetd.c builtins.c
#WARNS?= 2
WARNS?= 2
CFLAGS+= -DLOGIN_CAP
#CFLAGS+= -DSANITY_CHECK
CFLAGS+= -fno-builtin-log
DPADD= ${LIBUTIL} ${LIBWRAP}
LDADD= -lutil -lwrap

View File

@ -325,7 +325,7 @@ main(int argc, char **argv)
struct passwd *pwd;
struct group *grp;
struct sigaction sa, saalrm, sachld, sahup, sapipe;
int tmpint, ch, dofork;
int ch, dofork;
pid_t pid;
char buf[50];
#ifdef LOGIN_CAP