[Nagiosplug-devel] [ nagiosplug-Bugs-854339 ] current HEAD doesn't build

SourceForge.net noreply at sourceforge.net
Fri Dec 5 08:44:00 CET 2003


Bugs item #854339, was opened at 2003-12-04 21:21
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854339&group_id=29880

Category: None
Group: CVS
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Ian Holsman (webperf)
>Assigned to: Ton Voon (tonvoon)
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 *);

----------------------------------------------------------------------

>Comment By: Ton Voon (tonvoon)
Date: 2003-12-05 16:43

Message:
Logged In: YES 
user_id=664364

Ian,

Thanks for the patch. Fixed in netutils.h v1.8 and netutils.c 
1.15.

Ton

----------------------------------------------------------------------

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