mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
cleanup: ignore write/close output
Intentionaly ignore write and close errors.
This commit is contained in:
parent
93f36fb77f
commit
c8ad1f3e3a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user