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:
parent
94cd938578
commit
e5ec905575
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227246
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user