From: Ryan Lortie Date: Thu, 12 Nov 2009 04:21:48 +0000 (-0500) Subject: BugĀ 591216 - Warning building resolver.o X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=3d09b8e09c07ebb3bae4074f946c5da8d643d247;p=dana%2Fcg-glib.git BugĀ 591216 - Warning building resolver.o check result of write system call to quiet compiler warning --- diff --git a/gio/tests/resolver.c b/gio/tests/resolver.c index a6b4d945..64bc67e2 100644 --- a/gio/tests/resolver.c +++ b/gio/tests/resolver.c @@ -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