1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2025-06-10 14:50:08 +02:00

Bug 591216 - Warning building resolver.o

check result of write system call to quiet compiler warning
This commit is contained in:
Ryan Lortie 2009-11-11 23:21:48 -05:00
parent 78e8b39b49
commit 3d09b8e09c

@ -415,8 +415,11 @@ static int cancel_fds[2];
static void
interrupted (int sig)
{
gssize c;
signal (SIGINT, SIG_DFL);
write (cancel_fds[1], "x", 1);
c = write (cancel_fds[1], "x", 1);
g_assert_cmpint(c, ==, 1);
}
static gboolean