summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: de41631)
raw | patch | inline | side by side (parent: de41631)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 5 Jun 2016 11:03:42 +0000 (13:03 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 5 Jun 2016 11:03:42 +0000 (13:03 +0200) |
CID 37945
src/apcups.c | patch | blob | history |
diff --git a/src/apcups.c b/src/apcups.c
index 2d1c16bb2424e3aaea49653fc4aba02da700323c..9f7476bfa929940bf4bf882bfc01da764b476633 100644 (file)
--- a/src/apcups.c
+++ b/src/apcups.c
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;