aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-06-20 21:16:56 +0000
committerBill Nottingham <notting@redhat.com>2001-06-20 21:16:56 +0000
commit3453e77741eb5a9a2950307a8539e993a8870436 (patch)
treeff30d6e3daf024e64cfee0bf9974bf072804ee61
parent8c83c9d11b620a687673eb1194ebb47223c18b6b (diff)
downloadinitscripts-3453e77741eb5a9a2950307a8539e993a8870436.tar
initscripts-3453e77741eb5a9a2950307a8539e993a8870436.tar.gz
initscripts-3453e77741eb5a9a2950307a8539e993a8870436.tar.bz2
initscripts-3453e77741eb5a9a2950307a8539e993a8870436.tar.xz
initscripts-3453e77741eb5a9a2950307a8539e993a8870436.zip
clean up some compiler warnings
-rw-r--r--src/getkey.c2
-rw-r--r--src/process.c2
-rw-r--r--src/usernetctl.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/getkey.c b/src/getkey.c
index 8f1cc1f6..1305fff9 100644
--- a/src/getkey.c
+++ b/src/getkey.c
@@ -17,7 +17,7 @@ void reset_term(int x) {
int main(int argc, char **argv) {
char foo[2];
- char *list;
+ char *list = NULL;
int alarmlen=0;
int tp_if,tp_of,tp_lf;
int x;
diff --git a/src/process.c b/src/process.c
index 4ff805ef..585123c4 100644
--- a/src/process.c
+++ b/src/process.c
@@ -137,7 +137,7 @@ int monitor(char *cmdname, int pid, int numfds, int *fds, int reexec, int quiet,
char **cmdargs=NULL;
char **tmpargs=NULL;
int cmdargc;
- char *procpath;
+ char *procpath = NULL;
if (reexec) {
procpath=malloc(20*sizeof(char));
diff --git a/src/usernetctl.c b/src/usernetctl.c
index 34a6550c..238c0aee 100644
--- a/src/usernetctl.c
+++ b/src/usernetctl.c
@@ -120,7 +120,7 @@ int
main(int argc, char ** argv) {
char * ifaceConfig;
char * chptr;
- char * cmd;
+ char * cmd = NULL;
int report = 0;
char tmp;