http_message_create(): remove two implicit cast warnings.
Michael
This commit is contained in:
1 parent
6a35704cdb
commit
baf634194c
1 file changed
+3
-2
+3
-2
@@ -92,11 +92,12 @@ http_message_create (int response_code, const char *response_string)
|
||||
http_message_t msg;
|
||||
int ret;
|
||||
|
||||
msg = safecalloc (1, sizeof (struct http_message_s));
|
||||
msg = (struct http_message_s *)safecalloc (1, sizeof (struct http_message_s));
|
||||
if (msg == NULL)
|
||||
return NULL;
|
||||
|
||||
msg->headers.strings = safecalloc (NUMBER_OF_HEADERS, sizeof (char *));
|
||||
msg->headers.strings = (const char **)safecalloc (NUMBER_OF_HEADERS,
|
||||
sizeof (char *));
|
||||
if (msg->headers.strings == NULL)
|
||||
{
|
||||
safefree (msg);
|
||||
|
||||
Reference in new issue
Block a user