[Nagiosplug-devel] [ nagiosplug-Bugs-854339 ] current HEAD doesn't build
SourceForge.net
noreply at sourceforge.net
Thu Dec 4 13:22:02 CET 2003
Bugs item #854339, was opened at 2003-12-04 13:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854339&group_id=29880
Category: None
Group: CVS
Status: Open
Resolution: None
Priority: 5
Submitted By: Ian Holsman (webperf)
Assigned to: Nobody/Anonymous (nobody)
Summary: current HEAD doesn't build
Initial Comment:
when you try to include mysql support..
changing my_connect to static in netutils.c fixes this. (mysql
also has a my_connect)
Index: netutils.c
=====================================
==============================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/netutils.c,v
retrieving revision 1.14
diff -u -r1.14 netutils.c
--- netutils.c 8 Aug 2003 16:49:32 -0000 1.14
+++ netutils.c 4 Dec 2003 21:19:04 -0000
@@ -37,6 +37,7 @@
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 @@
/* 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;
Index: netutils.h
=====================================
==============================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/netutils.h,v
retrieving revision 1.7
diff -u -r1.7 netutils.h
--- netutils.h 8 Aug 2003 16:49:32 -0000 1.7
+++ netutils.h 4 Dec 2003 21:19:04 -0000
@@ -47,7 +47,6 @@
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 *);
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854339&group_id=29880
More information about the Devel
mailing list