summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Rückert <darix@opensu.se>2006-10-03 22:18:06 +0000
committerMarcus Rückert <darix@opensu.se>2006-10-03 22:18:06 +0000
commitf97e4604e813b4cbfefc3eb1472a8cf0c11b273b (patch)
tree142bdd490122e75111b39bdb220c50ab61e23aac
parenta1098fb80f531f2ac192939bd02c525abc15f136 (diff)
downloadlighttpd-git-f97e4604e813b4cbfefc3eb1472a8cf0c11b273b.tar.gz
- dont use int for a enum type
- handle default case in connection type switch git-svn-id: svn+ssh://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1360 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r--src/connections.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/connections.c b/src/connections.c
index 7793c86a..3f3a02e1 100644
--- a/src/connections.c
+++ b/src/connections.c
@@ -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