diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-18 19:36:48 +0000 |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-18 19:36:48 +0000 |
commit | f9394308c9c372bcf419a311c61ba420247ae613 (patch) | |
tree | 616e0bebcbe821703dff207f7f1b704c2deae349 /plugins/netutils.c | |
parent | cbbfed30eb01a702b2e61c0abcb64c834e73d654 (diff) | |
download | monitoring-plugins-f9394308c9c372bcf419a311c61ba420247ae613.tar.gz |
updating help and usage and license
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1434 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/netutils.c')
-rw-r--r-- | plugins/netutils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/netutils.c b/plugins/netutils.c index b4c3944b..a3a241d2 100644 --- a/plugins/netutils.c +++ b/plugins/netutils.c @@ -76,7 +76,7 @@ process_tcp_request2 (const char *server_address, int server_port, send_result = send (sd, send_buffer, strlen (send_buffer), 0); if (send_result<0 || (size_t)send_result!=strlen(send_buffer)) { - printf (_("Send failed\n")); + printf ("%s\n", _("Send failed")); result = STATE_WARNING; } @@ -93,7 +93,7 @@ process_tcp_request2 (const char *server_address, int server_port, if (!FD_ISSET (sd, &readfds)) { /* it hasn't */ if (!recv_length) { strcpy (recv_buffer, ""); - printf (_("No data was received from host!\n")); + printf ("%s\n", _("No data was received from host!")); result = STATE_WARNING; } else { /* this one failed, but previous ones worked */ @@ -190,7 +190,7 @@ np_net_connect (const char *host_name, int port, int *sd, int proto) *sd = socket (r->ai_family, socktype, r->ai_protocol); if (*sd < 0) { - printf (_("Socket creation failed\n")); + printf ("%s\n", _("Socket creation failed")); freeaddrinfo (r); return STATE_UNKNOWN; } @@ -267,7 +267,7 @@ send_request (int sd, int proto, const char *send_buffer, char *recv_buffer, int send_result = send (sd, send_buffer, strlen (send_buffer), 0); if (send_result<0 || (size_t)send_result!=strlen(send_buffer)) { - printf (_("Send failed\n")); + printf ("%s\n", _("Send failed")); result = STATE_WARNING; } @@ -282,7 +282,7 @@ send_request (int sd, int proto, const char *send_buffer, char *recv_buffer, int /* make sure some data has arrived */ if (!FD_ISSET (sd, &readfds)) { strcpy (recv_buffer, ""); - printf (_("No data was received from host!\n")); + printf ("%s\n", _("No data was received from host!")); result = STATE_WARNING; } @@ -291,7 +291,7 @@ send_request (int sd, int proto, const char *send_buffer, char *recv_buffer, int if (recv_result == -1) { strcpy (recv_buffer, ""); if (proto != IPPROTO_TCP) - printf (_("Receive failed\n")); + printf ("%s\n", _("Receive failed")); result = STATE_WARNING; } else |