diff options
author | ed <ed@FreeBSD.org> | 2011-11-06 18:50:33 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-06 18:50:33 +0000 |
commit | dc00e0357620f638acfb35e19a98a8cd762ce530 (patch) | |
tree | 3138358c400ef8b216f98a5340e70dbcd76a59c4 /usr.bin/whois/whois.c | |
parent | 04b0cc9b2b4ba10dbbe35ebe59a6e2b0d37f0c49 (diff) | |
download | FreeBSD-src-dc00e0357620f638acfb35e19a98a8cd762ce530.zip FreeBSD-src-dc00e0357620f638acfb35e19a98a8cd762ce530.tar.gz |
Mark global functions and/or variables in whois(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
Diffstat (limited to 'usr.bin/whois/whois.c')
-rw-r--r-- | usr.bin/whois/whois.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |