aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-01-31 20:11:35 +0000
committerBill Nottingham <notting@redhat.com>2000-01-31 20:11:35 +0000
commit8444e6f477ed933425d3f6e832840f90a3c98b05 (patch)
treee8d9add71d31dcf61d07352c82d674c877988a38 /src/process.c
parent38f5503ecc678bc1f28266b6a0febee4f0903a9d (diff)
downloadinitscripts-8444e6f477ed933425d3f6e832840f90a3c98b05.tar
initscripts-8444e6f477ed933425d3f6e832840f90a3c98b05.tar.gz
initscripts-8444e6f477ed933425d3f6e832840f90a3c98b05.tar.bz2
initscripts-8444e6f477ed933425d3f6e832840f90a3c98b05.tar.xz
initscripts-8444e6f477ed933425d3f6e832840f90a3c98b05.zip
fix some warnings on alpha
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c4
1 files changed, 2 insertions, 2 deletions
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;