aboutsummaryrefslogtreecommitdiffstats
path: root/src/initlog.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-07-08 17:07:11 +0000
committerBill Nottingham <notting@redhat.com>1999-07-08 17:07:11 +0000
commit0aeb63ad9b5462be2d7a868e8c76135ea8336203 (patch)
treea53d70f2f26a3af2fe423d6fe3ffeda25083919c /src/initlog.c
parent77b0bb06a826bff3e745bc10d2aff30bef514fe8 (diff)
downloadinitscripts-0aeb63ad9b5462be2d7a868e8c76135ea8336203.tar
initscripts-0aeb63ad9b5462be2d7a868e8c76135ea8336203.tar.gz
initscripts-0aeb63ad9b5462be2d7a868e8c76135ea8336203.tar.bz2
initscripts-0aeb63ad9b5462be2d7a868e8c76135ea8336203.tar.xz
initscripts-0aeb63ad9b5462be2d7a868e8c76135ea8336203.zip
fix some compiler warnings (nkbj@image.dk)
Diffstat (limited to 'src/initlog.c')
-rw-r--r--src/initlog.c6
1 files changed, 3 insertions, 3 deletions
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;