Commit 0d42526e authored by Simon McVittie's avatar Simon McVittie

signal_handler: avoid signed/unsigned mismatch (-Wsign-compare)

We're ignoring the result of this write() to stderr anyway, because
if it failed... what would we do? Write to stderr? That wouldn't work
any better the second time :-)

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=17289Reviewed-by: Ralf Habacker's avatarRalf Habacker <ralf.habacker@freenet.de>
parent 08a75e07
......@@ -87,7 +87,8 @@ signal_handler (int sig)
static const char message[] =
"Unable to write to reload pipe - buffer full?\n";
if (write (STDERR_FILENO, message, strlen (message)) != strlen (message))
if (write (STDERR_FILENO, message, strlen (message)) !=
(ssize_t) strlen (message))
{
/* ignore failure to write out a warning */
}
......@@ -111,7 +112,8 @@ signal_handler (int sig)
"Unable to write termination signal to pipe - buffer full?\n"
"Will exit instead.\n";
if (write (STDERR_FILENO, message, strlen (message)) != strlen (message))
if (write (STDERR_FILENO, message, strlen (message)) !=
(ssize_t) strlen (message))
{
/* ignore failure to write out a warning */
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment