git.samba.org
/
jelmer
/
ctrlproxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfc4463
)
Fix two warnings.
author
Jelmer Vernooij
<jelmer@samba.org>
Fri, 11 Apr 2008 21:02:03 +0000
(23:02 +0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Fri, 11 Apr 2008 21:02:03 +0000
(23:02 +0200)
lib/transport.c
patch
|
blob
|
history
diff --git
a/lib/transport.c
b/lib/transport.c
index f08465c2d8d217dbcaffecbdbb40444327fe94a4..fcedfc47e639b58db9254e8d1bcc77d0faaa9f48 100644
(file)
--- a/
lib/transport.c
+++ b/
lib/transport.c
@@
-242,6
+242,8
@@
static gboolean transport_send_queue(GIOChannel *ioc, GIOCondition cond,
status = g_io_channel_flush(transport->incoming, &error);
switch (status) {
+ case G_IO_STATUS_EOF:
+ g_assert_not_reached();
case G_IO_STATUS_AGAIN:
free_line(l);
return TRUE;
@@
-295,6
+297,8
@@
gboolean transport_send_line(struct irc_transport *transport,
status = g_io_channel_flush(transport->incoming, &error);
switch (status) {
+ case G_IO_STATUS_EOF:
+ g_assert_not_reached();
case G_IO_STATUS_NORMAL:
break;
case G_IO_STATUS_AGAIN: