diff options
-rw-r--r-- | src/initlog.c | 4 | ||||
-rw-r--r-- | src/process.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/initlog.c b/src/initlog.c index deeb9443..03782c32 100644 --- a/src/initlog.c +++ b/src/initlog.c @@ -232,7 +232,7 @@ int logEvent(char *cmd, int eventtype,char *string) { struct logInfo logentry; if (cmd) { - logentry.cmd = strdup((char *)basename(cmd)); + logentry.cmd = strdup(basename(cmd)); if ((logentry.cmd[0] =='K' || logentry.cmd[0] == 'S') && ( 30 <= logentry.cmd[1] <= 39 ) && ( 30 <= logentry.cmd[2] <= 39 ) ) logentry.cmd+=3; @@ -258,7 +258,7 @@ int logString(char *cmd, char *string) { struct logInfo logentry; if (cmd) { - logentry.cmd = strdup((char *)basename(cmd)); + logentry.cmd = strdup(basename(cmd)); if ((logentry.cmd[0] =='K' || logentry.cmd[0] == 'S') && ( 30 <= logentry.cmd[1] <= 39 ) && ( 30 <= logentry.cmd[2] <= 39 ) ) logentry.cmd+=3; diff --git a/src/process.c b/src/process.c index 174cc58e..b320051f 100644 --- a/src/process.c +++ b/src/process.c @@ -250,9 +250,9 @@ int runCommand(char *cmd, int reexec, int quiet, int debug) { } args[pid] = NULL; if (strcmp(args[0],"sh") && strcmp(args[0],"/bin/sh")) - cmdname = (char *)basename(args[0]); + cmdname = basename(args[0]); else - cmdname = (char *)basename(args[1]); + cmdname = basename(args[1]); if ((cmdname[0] =='K' || cmdname[0] == 'S') && ( '0' <= cmdname[1] <= '9' ) && ( '0' <= cmdname[2] <= '9' ) ) cmdname+=3; |