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 Schouten 2011-11-06 18:50:33 +00:00
parent 94cd938578
commit e5ec905575
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227246

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