diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-19 19:06:55 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-19 19:06:55 (GMT) |
commit | af00c7bc63bf8541a89a7185005f8ab88a8cf505 (patch) | |
tree | 17d896c1e9cbcbd82f9e02adbe355e0775d73b56 /plugins/check_time.c | |
parent | e51d2413c4ff59e64b39710406ef555f87165be3 (diff) | |
download | monitoring-plugins-af00c7bc63bf8541a89a7185005f8ab88a8cf505.tar.gz |
explicitly cast recv() arg2 for SunOS5.6
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@213 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_time.c')
-rw-r--r-- | plugins/check_time.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_time.c b/plugins/check_time.c index c381780..c7405f6 100644 --- a/plugins/check_time.c +++ b/plugins/check_time.c | |||
@@ -93,12 +93,12 @@ main (int argc, char **argv) | |||
93 | else | 93 | else |
94 | result = STATE_UNKNOWN; | 94 | result = STATE_UNKNOWN; |
95 | terminate (result, | 95 | terminate (result, |
96 | "TIME UNKNOWN - could not connect to server %s, port %d\n", | 96 | "TIME UNKNOWN - could not connect to server %s, port %d\n", |
97 | server_address, server_port); | 97 | server_address, server_port); |
98 | } | 98 | } |
99 | 99 | ||
100 | /* watch for the connection string */ | 100 | /* watch for the connection string */ |
101 | result = recv (sd, &raw_server_time, sizeof (raw_server_time), 0); | 101 | result = recv (sd, (void *)&raw_server_time, sizeof (raw_server_time), 0); |
102 | 102 | ||
103 | /* close the connection */ | 103 | /* close the connection */ |
104 | close (sd); | 104 | close (sd); |