Mark global functions and/or variables in whois(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.
This commit is contained in:
ed 2011-11-06 18:50:33 +00:00
parent 04b0cc9b2b
commit dc00e03576

View File

@ -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);