diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-09-13 22:35:34 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-09-13 22:35:34 +0000 |
commit | febb720bf938e35a0fa71609a96e66e5225553e2 (patch) | |
tree | 0840920eb2136efbe3ab7498c06afd4f37c552c7 | |
parent | 834587683338ba5d6a656b0210304526867b3ea4 (diff) | |
download | px4-nuttx-febb720bf938e35a0fa71609a96e66e5225553e2.tar.gz px4-nuttx-febb720bf938e35a0fa71609a96e66e5225553e2.tar.bz2 px4-nuttx-febb720bf938e35a0fa71609a96e66e5225553e2.zip |
Remove unused status field
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2051 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/netutils/thttpd/libhttpd.c | 7 | ||||
-rw-r--r-- | nuttx/netutils/thttpd/libhttpd.h | 1 |
2 files changed, 2 insertions, 6 deletions
diff --git a/nuttx/netutils/thttpd/libhttpd.c b/nuttx/netutils/thttpd/libhttpd.c index 0c0fd270c..eb5db1416 100644 --- a/nuttx/netutils/thttpd/libhttpd.c +++ b/nuttx/netutils/thttpd/libhttpd.c @@ -321,7 +321,6 @@ static void send_mime(httpd_conn *hc, int status, const char *title, const char int partial_content; int s100; - hc->status = status; hc->bytes_to_send = length; if (hc->mime_flag) { @@ -332,8 +331,8 @@ static void send_mime(httpd_conn *hc, int status, const char *title, const char (hc->range_if == (time_t) - 1 || hc->range_if == hc->sb.st_mtime)) { partial_content = 1; - hc->status = status = 206; - title = ok206title; + status = 206; + title = ok206title; } else { @@ -1926,7 +1925,6 @@ static int ls(httpd_conn *hc) } #endif - hc->status = 200; hc->bytes_sent = CONFIG_THTTPD_CGI_BYTECOUNT; hc->should_linger = FALSE; } @@ -2376,7 +2374,6 @@ int httpd_get_conn(httpd_server *hs, int listen_fd, httpd_conn *hc) hc->checked_idx = 0; hc->checked_state = CHST_FIRSTWORD; hc->method = METHOD_UNKNOWN; - hc->status = 0; hc->bytes_to_send = 0; hc->bytes_sent = 0; hc->encodedurl = ""; diff --git a/nuttx/netutils/thttpd/libhttpd.h b/nuttx/netutils/thttpd/libhttpd.h index 662f5011c..68d356d12 100644 --- a/nuttx/netutils/thttpd/libhttpd.h +++ b/nuttx/netutils/thttpd/libhttpd.h @@ -178,7 +178,6 @@ typedef struct size_t read_size, read_idx, checked_idx; int checked_state; int method; - int status; off_t bytes_to_send; off_t bytes_sent; char *encodedurl; |