X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fapcups.c;h=9f7476bfa929940bf4bf882bfc01da764b476633;hb=f91506bb8f91ca3725fd3081deba4e1829186aaa;hp=2d1c16bb2424e3aaea49653fc4aba02da700323c;hpb=6600bd1351bf81e0831e7ad95ee37a7b28cbdf94;p=collectd.git diff --git a/src/apcups.c b/src/apcups.c index 2d1c16bb..9f7476bf 100644 --- a/src/apcups.c +++ b/src/apcups.c @@ -89,7 +89,7 @@ static int net_shutdown (int *fd) if ((fd == NULL) || (*fd < 0)) return (EINVAL); - swrite (*fd, (void *) &packet_size, sizeof (packet_size)); + (void)swrite (*fd, (void *) &packet_size, sizeof (packet_size)); close (*fd); *fd = -1;