aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.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/process.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/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 24650727..73c46945 100644
--- a/src/process.c
+++ b/src/process.c
@@ -208,9 +208,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 = basename(args[0]);
+ cmdname = (char *)basename(args[0]);
else
- cmdname = basename(args[1]);
+ cmdname = (char *)basename(args[1]);
if ((cmdname[0] =='K' || cmdname[0] == 'S') && ( 30 <= cmdname[1] <= 39 )
&& ( 30 <= cmdname[2] <= 39 ) )
cmdname+=3;