fixed signed/unsigned comparision, fixed indentation

This commit is contained in:
goldsimon 2010-05-17 12:19:42 +00:00
parent 3a06d130c3
commit c7acce523a

View File

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