projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78e8b39
)
BugĀ 591216 - Warning building resolver.o
author
Ryan Lortie
<desrt@desrt.ca>
Thu, 12 Nov 2009 04:21:48 +0000
(23:21 -0500)
committer
Ryan Lortie
<desrt@desrt.ca>
Thu, 12 Nov 2009 04:21:48 +0000
(23:21 -0500)
check result of write system call to quiet compiler warning
gio/tests/resolver.c
patch
|
blob
|
history
diff --git
a/gio/tests/resolver.c
b/gio/tests/resolver.c
index
a6b4d94
..
64bc67e
100644
(file)
--- 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