diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-08-17 00:48:28 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-08-23 14:37:37 +0200 |
commit | c8ad1f3e3a280b8cf3ca219dd6a6f3313b8be8d8 (patch) | |
tree | b7dac855eecd9174a6befdc0d559a3146cacebee /scripts | |
parent | 93f36fb77f595f67602cd9b39bb696e802545546 (diff) | |
download | lvm2-c8ad1f3e3a280b8cf3ca219dd6a6f3313b8be8d8.tar.gz |
cleanup: ignore write/close output
Intentionaly ignore write and close errors.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lvm2_activation_generator_systemd_red_hat.c | 4 |
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 85420b8b4..9fcee2019 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; } |