mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
Remove unused status field
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2051 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -321,7 +321,6 @@ static void send_mime(httpd_conn *hc, int status, const char *title, const char
|
|||||||
int partial_content;
|
int partial_content;
|
||||||
int s100;
|
int s100;
|
||||||
|
|
||||||
hc->status = status;
|
|
||||||
hc->bytes_to_send = length;
|
hc->bytes_to_send = length;
|
||||||
if (hc->mime_flag)
|
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))
|
(hc->range_if == (time_t) - 1 || hc->range_if == hc->sb.st_mtime))
|
||||||
{
|
{
|
||||||
partial_content = 1;
|
partial_content = 1;
|
||||||
hc->status = status = 206;
|
status = 206;
|
||||||
title = ok206title;
|
title = ok206title;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1926,7 +1925,6 @@ static int ls(httpd_conn *hc)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
hc->status = 200;
|
|
||||||
hc->bytes_sent = CONFIG_THTTPD_CGI_BYTECOUNT;
|
hc->bytes_sent = CONFIG_THTTPD_CGI_BYTECOUNT;
|
||||||
hc->should_linger = FALSE;
|
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_idx = 0;
|
||||||
hc->checked_state = CHST_FIRSTWORD;
|
hc->checked_state = CHST_FIRSTWORD;
|
||||||
hc->method = METHOD_UNKNOWN;
|
hc->method = METHOD_UNKNOWN;
|
||||||
hc->status = 0;
|
|
||||||
hc->bytes_to_send = 0;
|
hc->bytes_to_send = 0;
|
||||||
hc->bytes_sent = 0;
|
hc->bytes_sent = 0;
|
||||||
hc->encodedurl = "";
|
hc->encodedurl = "";
|
||||||
|
|||||||
@@ -178,7 +178,6 @@ typedef struct
|
|||||||
size_t read_size, read_idx, checked_idx;
|
size_t read_size, read_idx, checked_idx;
|
||||||
int checked_state;
|
int checked_state;
|
||||||
int method;
|
int method;
|
||||||
int status;
|
|
||||||
off_t bytes_to_send;
|
off_t bytes_to_send;
|
||||||
off_t bytes_sent;
|
off_t bytes_sent;
|
||||||
char *encodedurl;
|
char *encodedurl;
|
||||||
|
|||||||
Reference in New Issue
Block a user