diff options
Diffstat (limited to 'plugins/netutils.c')
-rw-r--r-- | plugins/netutils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/netutils.c b/plugins/netutils.c index e7d5ba7..9539a7f 100644 --- a/plugins/netutils.c +++ b/plugins/netutils.c | |||
@@ -68,7 +68,7 @@ process_tcp_request2 (const char *server_address, int server_port, | |||
68 | fd_set readfds; | 68 | fd_set readfds; |
69 | int recv_length = 0; | 69 | int recv_length = 0; |
70 | 70 | ||
71 | result = my_connect (server_address, server_port, &sd, IPPROTO_TCP); | 71 | result = np_net_connect (server_address, server_port, &sd, IPPROTO_TCP); |
72 | if (result != STATE_OK) | 72 | if (result != STATE_OK) |
73 | return STATE_CRITICAL; | 73 | return STATE_CRITICAL; |
74 | 74 | ||
@@ -143,7 +143,7 @@ process_request (const char *server_address, int server_port, int proto, | |||
143 | 143 | ||
144 | result = STATE_OK; | 144 | result = STATE_OK; |
145 | 145 | ||
146 | result = my_connect (server_address, server_port, &sd, proto); | 146 | result = np_net_connect (server_address, server_port, &sd, proto); |
147 | if (result != STATE_OK) | 147 | if (result != STATE_OK) |
148 | return STATE_CRITICAL; | 148 | return STATE_CRITICAL; |
149 | 149 | ||
@@ -157,7 +157,7 @@ process_request (const char *server_address, int server_port, int proto, | |||
157 | 157 | ||
158 | /* opens a tcp or udp connection to a remote host */ | 158 | /* opens a tcp or udp connection to a remote host */ |
159 | int | 159 | int |
160 | my_connect (const char *host_name, int port, int *sd, int proto) | 160 | np_net_connect (const char *host_name, int port, int *sd, int proto) |
161 | { | 161 | { |
162 | struct addrinfo hints; | 162 | struct addrinfo hints; |
163 | struct addrinfo *res, *res0; | 163 | struct addrinfo *res, *res0; |