summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-08-17 00:48:28 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2012-08-23 14:37:37 +0200
commitc8ad1f3e3a280b8cf3ca219dd6a6f3313b8be8d8 (patch)
treeb7dac855eecd9174a6befdc0d559a3146cacebee
parent93f36fb77f595f67602cd9b39bb696e802545546 (diff)
downloadlvm2-c8ad1f3e3a280b8cf3ca219dd6a6f3313b8be8d8.zip
lvm2-c8ad1f3e3a280b8cf3ca219dd6a6f3313b8be8d8.tar.gz
lvm2-c8ad1f3e3a280b8cf3ca219dd6a6f3313b8be8d8.tar.xz
cleanup: ignore write/close output
Intentionaly ignore write and close errors.
-rw-r--r--scripts/lvm2_activation_generator_systemd_red_hat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lvm2_activation_generator_systemd_red_hat.c b/scripts/lvm2_activation_generator_systemd_red_hat.c
index 85420b8..9fcee20 100644
--- a/scripts/lvm2_activation_generator_systemd_red_hat.c
+++ b/scripts/lvm2_activation_generator_systemd_red_hat.c
@@ -46,7 +46,7 @@ static void kmsg(const char *format, ...)
if (kmsg_fd < 0 || (n < 0 || ((unsigned) n + 1 > sizeof(message))))
return;
- write(kmsg_fd, message, n + 1);
+ (void) write(kmsg_fd, message, n + 1);
}
static int lvm_uses_lvmetad(void)
@@ -164,6 +164,6 @@ int main(int argc, char *argv[])
out:
kmsg("LVM: Activation generator %s.\n", r ? "failed" : "successfully completed");
if (kmsg_fd != -1)
- close(kmsg_fd);
+ (void) close(kmsg_fd);
return r;
}