- dont use int for a enum type

- handle default case in connection type switch

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1360 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.13
Marcus Rückert 2006-10-03 22:18:06 +00:00
parent 3e7e2d528d
commit fe77777647
1 changed files with 2 additions and 1 deletions

View File

@ -837,7 +837,7 @@ int connection_reset(server *srv, connection *con) {
* we get called by the state-engine and by the fdevent-handler
*/
int connection_handle_read_state(server *srv, connection *con) {
int ostate = con->state;
connection_state_t ostate = con->state;
chunk *c, *last_chunk;
off_t last_offset;
chunkqueue *cq = con->read_queue;
@ -1117,6 +1117,7 @@ int connection_handle_read_state(server *srv, connection *con) {
}
break;
default: break;
}
/* the connection got closed and we didn't got enough data to leave one of the READ states