From baad654e3013127e600d732adbf4e45804282bb5 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 5 Jun 2016 13:03:42 +0200 Subject: [PATCH] apcups: ignore result of swrite in net_shutdown CID 37945 --- src/apcups.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2