fixed warnings about unused vars and unhandled enum-values in switch()
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@821 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
e5dbbc6581
commit
95132d93c8
|
@ -825,7 +825,6 @@ int connection_handle_read_state(server *srv, connection *con) {
|
|||
chunk *c;
|
||||
chunkqueue *cq = con->read_queue;
|
||||
chunkqueue *dst_cq = con->request_content_queue;
|
||||
size_t memusage;
|
||||
|
||||
if (con->is_readable) {
|
||||
con->read_idle_ts = srv->cur_ts;
|
||||
|
@ -955,7 +954,6 @@ int connection_handle_read_state(server *srv, connection *con) {
|
|||
case CON_STATE_READ_POST:
|
||||
for (c = cq->first; c && (dst_cq->bytes_in != con->request.content_length); c = c->next) {
|
||||
off_t weWant, weHave, toRead;
|
||||
int buffer_to_file = 0;
|
||||
|
||||
weWant = con->request.content_length - dst_cq->bytes_in;
|
||||
|
||||
|
|
|
@ -1020,6 +1020,8 @@ static int cgi_create_env(server *srv, connection *con, plugin_data *p, buffer *
|
|||
}
|
||||
}
|
||||
break;
|
||||
case UNUSED_CHUNK:
|
||||
break;
|
||||
}
|
||||
|
||||
if (r > 0) {
|
||||
|
|
|
@ -139,7 +139,7 @@ static int mod_setenv_patch_connection(server *srv, connection *con, plugin_data
|
|||
|
||||
URIHANDLER_FUNC(mod_setenv_uri_handler) {
|
||||
plugin_data *p = p_d;
|
||||
size_t k, i;
|
||||
size_t k;
|
||||
|
||||
mod_setenv_patch_connection(srv, con, p);
|
||||
|
||||
|
|
|
@ -969,10 +969,8 @@ int http_request_parse(server *srv, connection *con) {
|
|||
|| (con->request.http_method != HTTP_METHOD_GET
|
||||
&& con->request.http_method != HTTP_METHOD_HEAD
|
||||
&& con->request.http_method != HTTP_METHOD_OPTIONS
|
||||
&& con_length_set))
|
||||
{
|
||||
&& con_length_set)) {
|
||||
|
||||
server_socket *srv_socket = con->srv_socket;
|
||||
#if 0
|
||||
if (con->request.http_content_type == NULL) {
|
||||
log_error_write(srv, __FILE__, __LINE__, "s",
|
||||
|
|
Loading…
Reference in New Issue