mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
scripts: avoid voiding write result
Gcc doesn't want to ignore write() return code.
This commit is contained in:
parent
a3fe619552
commit
a4577c427a
@ -69,7 +69,8 @@ static void _error(const char *format, ...)
|
||||
return;
|
||||
|
||||
/* The n+31: +30 for "<n>lvm2-activation-generator: " prefix and +1 for '\0' suffix */
|
||||
(void) write(_kmsg_fd, message, n + 31);
|
||||
if (write(_kmsg_fd, message, n + 31) < 0)
|
||||
_error("Failed to write activation message %s: %m.\n", message);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user