From: jca Date: Sun, 31 Jul 2016 19:17:41 +0000 (+0000) Subject: Turn two global variables into variables local to main. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=207c9f8ad6bc6bcc46c4d4b38fdc9c49329daba6;p=openbsd Turn two global variables into variables local to main. --- 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();