mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-06-11 09:29:40 +00:00
fixed signed/unsigned comparision, fixed indentation
This commit is contained in:
parent
3a06d130c3
commit
c7acce523a
|
@ -558,7 +558,7 @@ get_tag_insert(struct http_state *hs)
|
|||
static void
|
||||
get_http_headers(struct http_state *pState, char *pszURI)
|
||||
{
|
||||
int iLoop;
|
||||
unsigned int iLoop;
|
||||
char *pszWork;
|
||||
char *pszExt;
|
||||
char *pszVars;
|
||||
|
@ -689,7 +689,7 @@ http_send_data(struct tcp_pcb *pcb, struct http_state *hs)
|
|||
|
||||
/* How much of this can we send? */
|
||||
sendlen = (len < (hdrlen - hs->hdr_pos)) ?
|
||||
len : (hdrlen - hs->hdr_pos);
|
||||
len : (hdrlen - hs->hdr_pos);
|
||||
|
||||
/* Send this amount of data or as much as we can given memory
|
||||
* constraints. */
|
||||
|
@ -745,7 +745,7 @@ http_send_data(struct tcp_pcb *pcb, struct http_state *hs)
|
|||
http_close_conn(pcb, hs);
|
||||
return 0;
|
||||
}
|
||||
if(fs_bytes_left(hs->handle) <= 0) {
|
||||
if (fs_bytes_left(hs->handle) <= 0) {
|
||||
/* We reached the end of the file so this request is done.
|
||||
* @todo: don't close here for HTTP/1.1? */
|
||||
LWIP_DEBUGF(HTTPD_DEBUG, ("End of file.\n"));
|
||||
|
|
Loading…
Reference in New Issue
Block a user