summaryrefslogtreecommitdiffstats
path: root/web/attachments/88809-nagios-plugins-1.4.0alpha1.my_connect.patch
blob: f3b16a60f27ebafc44be681df7e856f8ae385049 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
diff -Naur nagios-plugins-1.4.0alpha1.orig/plugins/netutils.c nagios-plugins-1.4.0alpha1/plugins/netutils.c
--- nagios-plugins-1.4.0alpha1.orig/plugins/netutils.c	2003-08-09 23:31:02.000000000 -0700
+++ nagios-plugins-1.4.0alpha1/plugins/netutils.c	2004-05-28 15:45:24.000000000 -0700
@@ -97,7 +97,7 @@
 	fd_set readfds;
 	int recv_length = 0;
 
-	result = my_connect (server_address, server_port, &sd, IPPROTO_TCP);
+	result = _my_connect (server_address, server_port, &sd, IPPROTO_TCP);
 	if (result != STATE_OK)
 		return STATE_CRITICAL;
 
@@ -175,7 +175,7 @@
 
 	result = STATE_OK;
 
-	result = my_connect (server_address, server_port, &sd, proto);
+	result = _my_connect (server_address, server_port, &sd, proto);
 	if (result != STATE_OK)
 		return STATE_CRITICAL;
 
@@ -227,7 +227,7 @@
 {
 	int result;
 
-	result = my_connect (host_name, port, sd, IPPROTO_TCP);
+	result = _my_connect (host_name, port, sd, IPPROTO_TCP);
 
 	return result;
 }
@@ -239,7 +239,7 @@
 {
 	int result;
 
-	result = my_connect (host_name, port, sd, IPPROTO_UDP);
+	result = _my_connect (host_name, port, sd, IPPROTO_UDP);
 
 	return result;
 }
@@ -247,7 +247,7 @@
 
 /* opens a tcp or udp connection to a remote host */
 int
-my_connect (const char *host_name, int port, int *sd, int proto)
+_my_connect (const char *host_name, int port, int *sd, int proto)
 {
 	struct addrinfo hints;
 	struct addrinfo *res;
diff -Naur nagios-plugins-1.4.0alpha1.orig/plugins/netutils.h nagios-plugins-1.4.0alpha1/plugins/netutils.h
--- nagios-plugins-1.4.0alpha1.orig/plugins/netutils.h	2003-08-08 16:05:17.000000000 -0700
+++ nagios-plugins-1.4.0alpha1/plugins/netutils.h	2004-05-28 15:45:28.000000000 -0700
@@ -47,7 +47,7 @@
 
 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 _my_connect (const char *address, int port, int *sd, int proto);
 
 int is_host (const char *);
 int is_addr (const char *);