diff options
author | Owen Taylor <otaylor@redhat.com> | 2000-08-21 18:46:52 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2000-08-21 18:46:52 +0000 |
commit | 33df64519d53b29731b889772ed1eff39cbf5215 (patch) | |
tree | 0387e6ded5bcdbaf30d36ea78e0050bafe47f321 /tests/gio-test.c | |
parent | 4010a5acb2be1747e60a0e844a508dbf0f55a149 (diff) | |
download | glib-33df64519d53b29731b889772ed1eff39cbf5215.tar.gz glib-33df64519d53b29731b889772ed1eff39cbf5215.tar.bz2 glib-33df64519d53b29731b889772ed1eff39cbf5215.zip |
Fix a couple of trivial bugs that were causing warnings.
Mon Aug 21 14:46:23 2000 Owen Taylor <otaylor@redhat.com>
* tests/gio-test.c: Fix a couple of trivial bugs that
were causing warnings.
Mon Aug 21 14:39:36 2000 Owen Taylor <otaylor@redhat.com>
* glib.h: Use C99 varargs macros where possible
(check __STDC_VERSION__), otherwise, on gcc, use an alternate
form of gcc varargs which is more likely
to be supported going forward. (Based on some code
from Raja Harinath)
Diffstat (limited to 'tests/gio-test.c')
-rw-r--r-- | tests/gio-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gio-test.c b/tests/gio-test.c index 80a944928..f0c087e4d 100644 --- a/tests/gio-test.c +++ b/tests/gio-test.c @@ -63,7 +63,7 @@ read_all (int fd, { guint left = nbytes; guint nb; - GIOError error; + GIOError error = G_IO_ERROR_NONE; char *bufp = buffer; /* g_io_channel_read() doesn't necessarily return all the @@ -150,7 +150,7 @@ recv_message (GIOChannel *channel, if (seq != seqtab[i].seq) { g_print ("gio-test: ...from %d: invalid sequence number %d, expected %d\n", - seq, seqtab[i].seq); + fd, seq, seqtab[i].seq); g_assert_not_reached (); } seqtab[i].seq++; |