mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 22:52:09 +01:00
Bug 591216 - Warning building resolver.o
check result of write system call to quiet compiler warning
This commit is contained in:
parent
78e8b39b49
commit
3d09b8e09c
@ -415,8 +415,11 @@ static int cancel_fds[2];
|
|||||||
static void
|
static void
|
||||||
interrupted (int sig)
|
interrupted (int sig)
|
||||||
{
|
{
|
||||||
|
gssize c;
|
||||||
|
|
||||||
signal (SIGINT, SIG_DFL);
|
signal (SIGINT, SIG_DFL);
|
||||||
write (cancel_fds[1], "x", 1);
|
c = write (cancel_fds[1], "x", 1);
|
||||||
|
g_assert_cmpint(c, ==, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user