From 8a4567f0b83c7882f932488cfafc29466c5f5b0e Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Fri, 5 Dec 2003 16:42:38 +0000 Subject: Fix clash of namespace for my_connect with mysql (854339 - Ian Holsman) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@784 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/netutils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/netutils.c') diff --git a/plugins/netutils.c b/plugins/netutils.c index 58b3fb48..8c5deb04 100644 --- a/plugins/netutils.c +++ b/plugins/netutils.c @@ -37,6 +37,7 @@ int econn_refuse_state = STATE_CRITICAL; 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) @@ -246,7 +247,7 @@ my_udp_connect (const char *host_name, int port, int *sd) /* 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; -- cgit v1.2.3