http_message_add_headers(): fix implicit cast warning.

Michael
This commit is contained in:
Michael Adam 2009-08-07 09:21:28 +02:00
parent baf634194c
commit f99edadc92

View File

@ -207,7 +207,8 @@ http_message_add_headers (http_message_t msg, const char **headers,
*/ */
if (msg->headers.used + num_headers > msg->headers.total) if (msg->headers.used + num_headers > msg->headers.total)
{ {
new_headers = safecalloc (msg->headers.total * 2, sizeof (char *)); new_headers = (const char **)safecalloc (msg->headers.total * 2,
sizeof (char *));
if (new_headers == NULL) if (new_headers == NULL)
return -ENOMEM; return -ENOMEM;