summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d049302)
raw | patch | inline | side by side (parent: d049302)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 5 Dec 2003 16:42:38 +0000 (16:42 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 5 Dec 2003 16:42:38 +0000 (16:42 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@784 f882894a-f735-0410-b71e-b25c423dba1c
plugins/netutils.c | patch | blob | history | |
plugins/netutils.h | patch | blob | history |
diff --git a/plugins/netutils.c b/plugins/netutils.c
index 58b3fb485456593ebb9794e625e11f650047a45f..8c5deb0403c9b3f10d5315782a3a22eb928fe594 100644 (file)
--- a/plugins/netutils.c
+++ b/plugins/netutils.c
int was_refused = FALSE;
int address_family = AF_UNSPEC;
+static int my_connect(const char *address, int port, int *sd, int proto);
/* handles socket timeouts */
void
socket_timeout_alarm_handler (int sig)
/* opens a tcp or udp connection to a remote host */
-int
+static int
my_connect (const char *host_name, int port, int *sd, int proto)
{
struct addrinfo hints;
diff --git a/plugins/netutils.h b/plugins/netutils.h
index c560f4492bdf62404840a1025dab592bee7d618d..88a5162e7082059a45a2ceba271f9b4639fac30d 100644 (file)
--- a/plugins/netutils.h
+++ b/plugins/netutils.h
int my_tcp_connect (const char *address, int port, int *sd);
int my_udp_connect (const char *address, int port, int *sd);
-int my_connect (const char *address, int port, int *sd, int proto);
int is_host (const char *);
int is_addr (const char *);