Răsfoiți Sursa

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
Ton Voon 22 ani în urmă
părinte
comite
8a4567f0b8
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 1
      plugins/netutils.c
  2. 0 1
      plugins/netutils.h

+ 2 - 1
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;

+ 0 - 1
plugins/netutils.h

@@ -47,7 +47,6 @@ int process_request (const char *address, int port, int proto,
 
 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 *);