diff options
author | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-31 20:03:19 +0000 |
---|---|---|
committer | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-31 20:03:19 +0000 |
commit | 3038819fef47495af2730b0d2df2a5a8475fc7bb (patch) | |
tree | 978a1706ef546a153bfc41af7f33959b4543678c /plugins/netutils.h | |
parent | 0ff7d99a5e75683e778943884e60a11251183f45 (diff) | |
download | monitoring-plugins-3038819fef47495af2730b0d2df2a5a8475fc7bb.tar.gz |
code cleanups, largely resulting from turning on -Wall. mostly
unused variables and explicit casting issues, but there were a
couple gotchas in there too.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1267 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/netutils.h')
-rw-r--r-- | plugins/netutils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/netutils.h b/plugins/netutils.h index 8bc7bd61..1168f9f8 100644 --- a/plugins/netutils.h +++ b/plugins/netutils.h | |||
@@ -37,6 +37,7 @@ | |||
37 | 37 | ||
38 | #include "config.h" | 38 | #include "config.h" |
39 | #include "common.h" | 39 | #include "common.h" |
40 | #include "utils.h" | ||
40 | #include <netinet/in.h> | 41 | #include <netinet/in.h> |
41 | #include <arpa/inet.h> | 42 | #include <arpa/inet.h> |
42 | 43 | ||
@@ -77,6 +78,7 @@ int send_request (int sd, int proto, const char *send_buffer, char *recv_buffer, | |||
77 | int is_host (const char *); | 78 | int is_host (const char *); |
78 | int is_addr (const char *); | 79 | int is_addr (const char *); |
79 | int resolve_host_or_addr (const char *, int); | 80 | int resolve_host_or_addr (const char *, int); |
81 | void host_or_die(const char *str); | ||
80 | #define is_inet_addr(addr) resolve_host_or_addr(addr, AF_INET) | 82 | #define is_inet_addr(addr) resolve_host_or_addr(addr, AF_INET) |
81 | #ifdef USE_IPV6 | 83 | #ifdef USE_IPV6 |
82 | # define is_inet6_addr(addr) resolve_host_or_addr(addr, AF_INET6) | 84 | # define is_inet6_addr(addr) resolve_host_or_addr(addr, AF_INET6) |