apcups: ignore result of swrite in net_shutdown
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 5 Jun 2016 11:03:42 +0000 (13:03 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 5 Jun 2016 11:03:42 +0000 (13:03 +0200)
CID 37945

src/apcups.c

index 2d1c16b..9f7476b 100644 (file)
@@ -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;