artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d97a04
)
Turn two global variables into variables local to main.
author
jca
<jca@openbsd.org>
Sun, 31 Jul 2016 19:17:41 +0000
(19:17 +0000)
committer
jca
<jca@openbsd.org>
Sun, 31 Jul 2016 19:17:41 +0000
(19:17 +0000)
usr.sbin/ndp/ndp.c
patch
|
blob
|
history
diff --git
a/usr.sbin/ndp/ndp.c
b/usr.sbin/ndp/ndp.c
index
3b14bb2
..
47d7db8
100644
(file)
--- a/
usr.sbin/ndp/ndp.c
+++ b/
usr.sbin/ndp/ndp.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ndp.c,v 1.7
2 2016/07/31 19:12:26
jca Exp $ */
+/* $OpenBSD: ndp.c,v 1.7
3 2016/07/31 19:17:41
jca Exp $ */
/* $KAME: ndp.c,v 1.101 2002/07/17 08:46:33 itojun Exp $ */
/*
@@
-152,13
+152,12
@@
static char *rtpref_str[] = {
"low" /* 11 */
};
-int mode = 0;
-char *arg = NULL;
-
int
main(int argc, char *argv[])
{
int ch;
+ int mode = 0;
+ char *arg = NULL;
const char *errstr;
pid = getpid();