diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-07-31 19:17:42 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-07-31 19:17:42 +0000 |
commit | 59890c28fdebe47ac9a427197d736318fb49faa2 (patch) | |
tree | 33a8ffe5beb32513f04adf27da1551057fa51d20 /usr.sbin | |
parent | 2e17c4261785ed1edbbaccb4c551168b1045a1a1 (diff) |
Turn two global variables into variables local to main.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ndp/ndp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c index 3b14bb235fd..47d7db83c10 100644 --- a/usr.sbin/ndp/ndp.c +++ b/usr.sbin/ndp/ndp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ndp.c,v 1.72 2016/07/31 19:12:26 jca Exp $ */ +/* $OpenBSD: ndp.c,v 1.73 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(); |