aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/pkill
diff options
context:
space:
mode:
authorGarance A Drosehn <gad@FreeBSD.org>2004-03-26 19:29:57 +0000
committerGarance A Drosehn <gad@FreeBSD.org>2004-03-26 19:29:57 +0000
commit3d7fb10b5f19549855e595f9cfbaa9a5dc76c4c6 (patch)
treef90260192c5d76af4fdf06526d8d257933678a44 /usr.bin/pkill
parent16212808728a1cdda42656eb5e1cef4d4bfff2c7 (diff)
Notes
Diffstat (limited to 'usr.bin/pkill')
-rw-r--r--usr.bin/pkill/pkill.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/pkill/pkill.c b/usr.bin/pkill/pkill.c
index c5226fb82b03c..4c6c8eb2fbe81 100644
--- a/usr.bin/pkill/pkill.c
+++ b/usr.bin/pkill/pkill.c
@@ -128,7 +128,7 @@ main(int argc, char **argv)
extern char *optarg;
extern int optind;
char buf[_POSIX2_LINE_MAX], *mstr, **pargv, *p, *q;
- const char *execf, *coref, *swapf;
+ const char *execf, *coref;
int debug_opt;
int i, ch, bestidx, rv, criteria, drop_privs;
size_t jsz;
@@ -171,7 +171,7 @@ main(int argc, char **argv)
criteria = 0;
debug_opt = 0;
drop_privs = 0;
- execf = coref = swapf = _PATH_DEVNULL;
+ execf = coref = _PATH_DEVNULL;
while ((ch = getopt(argc, argv, "DG:M:N:P:U:d:fg:lns:t:u:vx")) != -1)
switch (ch) {
@@ -263,7 +263,7 @@ main(int argc, char **argv)
/*
* Retrieve the list of running processes from the kernel.
*/
- kd = kvm_openfiles(execf, coref, swapf, O_RDONLY, buf);
+ kd = kvm_openfiles(execf, coref, NULL, O_RDONLY, buf);
if (kd == NULL)
errx(STATUS_ERROR, "kvm_openfiles(): %s", buf);