Costmetic changes after review for sense of OK (should be zero)
This commit is contained in:
parent
ca29783785
commit
d7372fbdbc
@ -246,7 +246,7 @@ static int handle_script(struct httpd_state *pstate)
|
|||||||
|
|
||||||
send(pstate->ht_sockfd, pstate->ht_file.data, pstate->ht_file.len, 0);
|
send(pstate->ht_sockfd, pstate->ht_file.data, pstate->ht_file.len, 0);
|
||||||
|
|
||||||
httpd_close(&pstate->ht_file);
|
(void)httpd_close(&pstate->ht_file);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -306,6 +306,7 @@ static int handle_script(struct httpd_state *pstate)
|
|||||||
pstate->ht_file.len -= len;
|
pstate->ht_file.len -= len;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -460,7 +461,7 @@ static int httpd_senderror(struct httpd_state *pstate, int status)
|
|||||||
ret = send_chunk(pstate, pstate->ht_file.data, pstate->ht_file.len);
|
ret = send_chunk(pstate, pstate->ht_file.data, pstate->ht_file.len);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void) httpd_close(&pstate->ht_file);
|
(void)httpd_close(&pstate->ht_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
@ -514,7 +515,6 @@ static int httpd_sendfile(struct httpd_state *pstate)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = handle_script(pstate);
|
ret = handle_script(pstate);
|
||||||
|
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -531,9 +531,7 @@ static int httpd_sendfile(struct httpd_state *pstate)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
||||||
(void)httpd_close(&pstate->ht_file);
|
(void)httpd_close(&pstate->ht_file);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -831,7 +829,7 @@ static void single_server(uint16_t portno, pthread_startroutine_t handler, int s
|
|||||||
|
|
||||||
/* Handle the request. This blocks until complete. */
|
/* Handle the request. This blocks until complete. */
|
||||||
|
|
||||||
(void) httpd_handler((void*)acceptsd);
|
(void)httpd_handler((void*)acceptsd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user