From 0aeb63ad9b5462be2d7a868e8c76135ea8336203 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 8 Jul 1999 17:07:11 +0000 Subject: fix some compiler warnings (nkbj@image.dk) --- src/initlog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/initlog.c') diff --git a/src/initlog.c b/src/initlog.c index 5479ac1f..a8971e25 100644 --- a/src/initlog.c +++ b/src/initlog.c @@ -110,7 +110,7 @@ int startDaemon() { int logLine(struct logInfo *logEnt) { /* Logs a line... somewhere. */ - int x=0,y=0,z=0; + int x; struct stat statbuf; /* Don't log empty or null lines */ @@ -156,7 +156,7 @@ int logEvent(char *cmd, int eventtype,char *string) { struct logInfo logentry; if (cmd) { - logentry.cmd = strdup(basename(cmd)); + logentry.cmd = strdup((char *)basename(cmd)); if ((logentry.cmd[0] =='K' || logentry.cmd[0] == 'S') && ( 30 <= logentry.cmd[1] <= 39 ) && ( 30 <= logentry.cmd[2] <= 39 ) ) logentry.cmd+=3; @@ -182,7 +182,7 @@ int logString(char *cmd, char *string) { struct logInfo logentry; if (cmd) { - logentry.cmd = strdup(basename(cmd)); + logentry.cmd = strdup((char *)basename(cmd)); if ((logentry.cmd[0] =='K' || logentry.cmd[0] == 'S') && ( 30 <= logentry.cmd[1] <= 39 ) && ( 30 <= logentry.cmd[2] <= 39 ) ) logentry.cmd+=3; -- cgit v1.2.1