From: Ruben Kerkhof Date: Sun, 5 Jun 2016 11:03:42 +0000 (+0200) Subject: apcups: ignore result of swrite in net_shutdown X-Git-Tag: collectd-5.6.0~230^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;ds=sidebyside;h=baad654e3013127e600d732adbf4e45804282bb5;hp=-c;p=collectd.git apcups: ignore result of swrite in net_shutdown CID 37945 --- baad654e3013127e600d732adbf4e45804282bb5 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;