mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-07-04 15:29:30 +00:00
* httpd.c: Fix warnings on some systems with mem_malloc.
This commit is contained in:
parent
7692d054a6
commit
19cd8d9d9a
@ -212,7 +212,7 @@ http_accept(void *arg, struct tcp_pcb *pcb, err_t err)
|
||||
|
||||
/* Allocate memory for the structure that holds the state of the
|
||||
connection. */
|
||||
hs = mem_malloc(sizeof(struct http_state));
|
||||
hs = (struct http_state *)mem_malloc(sizeof(struct http_state));
|
||||
|
||||
if (hs == NULL) {
|
||||
printf("http_accept: Out of memory\n");
|
||||
|
Loading…
Reference in New Issue
Block a user