Browse Source

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
svn/tags/lighttpd-1.4.8
Jan Kneschke 17 years ago
parent
commit
95132d93c8
  1. 2
      src/connections.c
  2. 2
      src/mod_cgi.c
  3. 2
      src/mod_setenv.c
  4. 4
      src/request.c

2
src/connections.c

@ -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;

2
src/mod_cgi.c

@ -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) {

2
src/mod_setenv.c

@ -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);

4
src/request.c

@ -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…
Cancel
Save