diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-08 04:33:21 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-08 04:33:21 +0000 |
commit | 65ca899d2c98b6342783922a5709c4b61e6b2b1f (patch) | |
tree | 81bff537f3ba725e1d214d548199868572baf76b /plugins/netutils.c | |
parent | 92cd137176830bcdfbd477f151ba22d456b2e31c (diff) | |
download | monitoring-plugins-65ca899d2c98b6342783922a5709c4b61e6b2b1f.tar.gz |
fix a variety of compiler warnings about qualifier discards and other pedantic stuff
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@662 f882894a-f735-0410-b71e-b25c423dba1c
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 4ca3168d..92fd1420 100644 --- a/plugins/netutils.c +++ b/plugins/netutils.c @@ -32,7 +32,7 @@ #include "common.h" #include "netutils.h" -int socket_timeout = DEFAULT_SOCKET_TIMEOUT; +unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT; int econn_refuse_state = STATE_CRITICAL; int was_refused = FALSE; int address_family = AF_UNSPEC; @@ -131,7 +131,7 @@ process_tcp_request2 (char *server_address, int server_port, else { /* it has */ recv_result = recv (sd, recv_buffer + recv_length, - recv_size - recv_length - 1, 0); + (size_t)recv_size - recv_length - 1, 0); if (recv_result == -1) { /* recv failed, bail out */ strcpy (recv_buffer + recv_length, ""); @@ -201,7 +201,7 @@ process_request (char *server_address, int server_port, int proto, } else { - recv_result = recv (sd, recv_buffer, recv_size - 1, 0); + recv_result = recv (sd, recv_buffer, (size_t)recv_size - 1, 0); if (recv_result == -1) { strcpy (recv_buffer, ""); if (proto != IPPROTO_TCP) |