Be explicit about missing case.
authorEmil Mikulic <emikulic@gmail.com>
Wed, 4 May 2011 12:54:38 +0000 (22:54 +1000)
committerEmil Mikulic <emikulic@gmail.com>
Sat, 28 May 2011 10:10:52 +0000 (20:10 +1000)
http.c

diff --git a/http.c b/http.c
index c795f47..9796552 100644 (file)
--- a/http.c
+++ b/http.c
@@ -1026,6 +1026,7 @@ void http_poll(fd_set *recv_set, fd_set *send_set)
         if (FD_ISSET(conn->socket, send_set)) poll_send_reply(conn);
         break;
 
+    case DONE: /* fallthrough */
     default: errx(1, "invalid state");
     }
 }