From f99edadc92900ef2262e38820e66a2061331a3aa Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 7 Aug 2009 09:21:28 +0200 Subject: http_message_add_headers(): fix implicit cast warning. Michael --- src/http-message.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/http-message.c b/src/http-message.c index f95f472..a184fa1 100644 --- a/src/http-message.c +++ b/src/http-message.c @@ -207,7 +207,8 @@ http_message_add_headers (http_message_t msg, const char **headers, */ 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) return -ENOMEM; -- cgit v1.2.3