summaryrefslogtreecommitdiffstats
path: root/plugins/netutils.h
diff options
context:
space:
mode:
authorM. Sean Finney <seanius@users.sourceforge.net>2005-10-31 20:03:19 (GMT)
committerM. Sean Finney <seanius@users.sourceforge.net>2005-10-31 20:03:19 (GMT)
commit3038819fef47495af2730b0d2df2a5a8475fc7bb (patch)
tree978a1706ef546a153bfc41af7f33959b4543678c /plugins/netutils.h
parent0ff7d99a5e75683e778943884e60a11251183f45 (diff)
downloadmonitoring-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/netutils.h b/plugins/netutils.h
index 8bc7bd6..1168f9f 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,
77int is_host (const char *); 78int is_host (const char *);
78int is_addr (const char *); 79int is_addr (const char *);
79int resolve_host_or_addr (const char *, int); 80int resolve_host_or_addr (const char *, int);
81void 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)