Fix two warnings.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 11 Apr 2008 21:02:03 +0000 (23:02 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 11 Apr 2008 21:02:03 +0000 (23:02 +0200)
lib/transport.c

index f08465c2d8d217dbcaffecbdbb40444327fe94a4..fcedfc47e639b58db9254e8d1bcc77d0faaa9f48 100644 (file)
@@ -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: