Fix three implicit cast warnings in process_request().
Michael
This commit is contained in:
parent
43fcc9ea37
commit
bfca4019b7
@ -557,15 +557,15 @@ process_request (struct conn_s *connptr, hashmap_t hashofheaders)
|
|||||||
size_t request_len;
|
size_t request_len;
|
||||||
|
|
||||||
/* NULL out all the fields so frees don't cause segfaults. */
|
/* NULL out all the fields so frees don't cause segfaults. */
|
||||||
request = safecalloc (1, sizeof (struct request_s));
|
request = (struct request_s *)safecalloc (1, sizeof (struct request_s));
|
||||||
if (!request)
|
if (!request)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
request_len = strlen (connptr->request_line) + 1;
|
request_len = strlen (connptr->request_line) + 1;
|
||||||
|
|
||||||
request->method = safemalloc (request_len);
|
request->method = (char *)safemalloc (request_len);
|
||||||
url = safemalloc (request_len);
|
url = (char *)safemalloc (request_len);
|
||||||
request->protocol = safemalloc (request_len);
|
request->protocol = (char *)safemalloc (request_len);
|
||||||
|
|
||||||
if (!request->method || !url || !request->protocol)
|
if (!request->method || !url || !request->protocol)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user