From 833d734af1558dddd074421407265f5651bf253e Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Thu, 1 May 2003 20:49:42 +0000 Subject: cleanup --- sapi/thttpd/thttpd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sapi') diff --git a/sapi/thttpd/thttpd.c b/sapi/thttpd/thttpd.c index 9148e56af8..fd6edc6ae3 100644 --- a/sapi/thttpd/thttpd.c +++ b/sapi/thttpd/thttpd.c @@ -222,9 +222,8 @@ static int sapi_thttpd_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) static int sapi_thttpd_read_post(char *buffer, uint count_bytes TSRMLS_DC) { - size_t read_bytes = 0, tmp; + size_t read_bytes = 0; int c; - int n; c = SIZEOF_UNCONSUMED_BYTES(); if (c > 0) { @@ -251,7 +250,6 @@ static void sapi_thttpd_register_variables(zval *track_vars_array TSRMLS_DC) { char buf[BUF_SIZE + 1]; char *p; - int xsa_len; php_register_variable("PHP_SELF", SG(request_info).request_uri, track_vars_array TSRMLS_CC); php_register_variable("SERVER_SOFTWARE", SERVER_SOFTWARE, track_vars_array TSRMLS_CC); @@ -636,8 +634,6 @@ static off_t thttpd_real_php_request(httpd_conn *hc, int show_source TSRMLS_DC) if (hc->contentlength > 0 && SIZEOF_UNCONSUMED_BYTES() < hc->contentlength) { - int missing = hc->contentlength - SIZEOF_UNCONSUMED_BYTES(); - hc->read_body_into_mem = 1; return 0; } -- cgit v1.2.1