1
0
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:
Zdenek Kabelac 2018-12-21 11:19:25 +01:00
parent a3fe619552
commit a4577c427a

View File

@ -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);
}
//----------------------------------------------------------------