From dc00e0357620f638acfb35e19a98a8cd762ce530 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 6 Nov 2011 18:50:33 +0000 Subject: Mark global functions and/or variables in whois(1) static where possible. This allows compilers and static analyzers to more thorough analysis. --- usr.bin/whois/whois.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/whois/whois.c') diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index b49daf0..d76d05a 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -81,9 +81,9 @@ __FBSDID("$FreeBSD$"); #define ishost(h) (isalnum((unsigned char)h) || h == '.' || h == '-') -const char *ip_whois[] = { LNICHOST, RNICHOST, PNICHOST, BNICHOST, - FNICHOST, NULL }; -const char *port = DEFAULT_PORT; +static const char *ip_whois[] = { LNICHOST, RNICHOST, PNICHOST, BNICHOST, + FNICHOST, NULL }; +static const char *port = DEFAULT_PORT; static char *choose_server(char *); static struct addrinfo *gethostinfo(char const *host, int exit_on_error); -- cgit v1.1