From 207c9f8ad6bc6bcc46c4d4b38fdc9c49329daba6 Mon Sep 17 00:00:00 2001 From: jca Date: Sun, 31 Jul 2016 19:17:41 +0000 Subject: [PATCH] Turn two global variables into variables local to main. --- usr.sbin/ndp/ndp.c | 7 +++---- 1 file 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(); -- 2.20.1