From: Ruben Kerkhof Date: Fri, 15 Jul 2016 20:04:38 +0000 (+0200) Subject: ntpd plugin: remove unneccesary casts X-Git-Tag: collectd-5.6.0~208 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=29ebcf5d8b640593a04b3832ccfb269ba74c96aa;p=collectd.git ntpd plugin: remove unneccesary casts --- diff --git a/src/ntpd.c b/src/ntpd.c index 1071d0b3..bd02dfd8 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -505,7 +505,7 @@ static int ntpd_receive_response (int *res_items, int *res_size, break; } - memset ((void *) &res, '\0', sizeof (res)); + memset (&res, '\0', sizeof (res)); status = recv (sd, (void *) &res, sizeof (res), 0 /* no flags */); if ((status < 0) && ((errno == EAGAIN) || (errno == EINTR))) @@ -720,7 +720,7 @@ static int ntpd_send_request (int req_code, int req_items, int req_size, char *r if ((sd = ntpd_connect ()) < 0) return (-1); - memset ((void *) &req, '\0', sizeof (req)); + memset (&req, '\0', sizeof (req)); req.rm_vn_mode = RM_VN_MODE(0, 0, 0); req.auth_seq = AUTH_SEQ (0, 0); req.implementation = IMPL_XNTPD;