summaryrefslogtreecommitdiffstats
path: root/plugins/netutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/netutils.c')
-rw-r--r--plugins/netutils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/netutils.c b/plugins/netutils.c
index 58b3fb4..8c5deb0 100644
--- a/plugins/netutils.c
+++ b/plugins/netutils.c
@@ -37,6 +37,7 @@ int econn_refuse_state = STATE_CRITICAL;
37int was_refused = FALSE; 37int was_refused = FALSE;
38int address_family = AF_UNSPEC; 38int address_family = AF_UNSPEC;
39 39
40static int my_connect(const char *address, int port, int *sd, int proto);
40/* handles socket timeouts */ 41/* handles socket timeouts */
41void 42void
42socket_timeout_alarm_handler (int sig) 43socket_timeout_alarm_handler (int sig)
@@ -246,7 +247,7 @@ my_udp_connect (const char *host_name, int port, int *sd)
246 247
247 248
248/* opens a tcp or udp connection to a remote host */ 249/* opens a tcp or udp connection to a remote host */
249int 250static int
250my_connect (const char *host_name, int port, int *sd, int proto) 251my_connect (const char *host_name, int port, int *sd, int proto)
251{ 252{
252 struct addrinfo hints; 253 struct addrinfo hints;