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