diff options
-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 c3817805..c7405f61 100644 --- a/plugins/check_time.c +++ b/plugins/check_time.c @@ -93,12 +93,12 @@ main (int argc, char **argv) else result = STATE_UNKNOWN; terminate (result, - "TIME UNKNOWN - could not connect to server %s, port %d\n", - server_address, server_port); + "TIME UNKNOWN - could not connect to server %s, port %d\n", + server_address, server_port); } /* watch for the connection string */ - result = recv (sd, &raw_server_time, sizeof (raw_server_time), 0); + result = recv (sd, (void *)&raw_server_time, sizeof (raw_server_time), 0); /* close the connection */ close (sd); |