summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/pkill/pkill.c3
-rw-r--r--bin/ps/ps.c3
-rw-r--r--usr.bin/w/w.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/bin/pkill/pkill.c b/bin/pkill/pkill.c
index 9105c8c..153c90f 100644
--- a/bin/pkill/pkill.c
+++ b/bin/pkill/pkill.c
@@ -180,7 +180,8 @@ main(int argc, char **argv)
debug_opt = 0;
pidfile = NULL;
pidfilelock = 0;
- execf = coref = _PATH_DEVNULL;
+ execf = NULL;
+ coref = _PATH_DEVNULL;
while ((ch = getopt(argc, argv, "DF:G:ILM:N:P:SU:ad:fg:ij:lnos:t:u:vx")) != -1)
switch (ch) {
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
index 904a430..0667db9 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -212,7 +212,8 @@ main(int argc, char *argv[])
init_list(&sesslist, addelem_pid, sizeof(pid_t), "session id");
init_list(&ttylist, addelem_tty, sizeof(dev_t), "tty");
init_list(&uidlist, addelem_uid, sizeof(uid_t), "user");
- memf = nlistf = _PATH_DEVNULL;
+ memf = _PATH_DEVNULL;
+ nlistf = NULL;
while ((ch = getopt(argc, argv, PS_ARGS)) != -1)
switch (ch) {
case 'A':
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index 0612cd8..fb97e8a 100644
--- a/usr.bin/w/w.c
+++ b/usr.bin/w/w.c
@@ -158,7 +158,8 @@ main(int argc, char *argv[])
}
dropgid = 0;
- memf = nlistf = _PATH_DEVNULL;
+ memf = _PATH_DEVNULL;
+ nlistf = NULL;
while ((ch = getopt(argc, argv, p)) != -1)
switch (ch) {
case 'd':
OpenPOWER on IntegriCloud