summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-07 09:20:28 +0200
committerMichael Adam <obnox@samba.org>2009-08-07 09:20:28 +0200
commitbaf634194c89b86b9df42bc84c1dd1d4603d285c (patch)
treec727557c9caf952ff2c5ac984bab3386ea54fb0c
parent6a35704cdb2e930069917331612cd3c894dc1165 (diff)
downloadtinyproxy-baf634194c89b86b9df42bc84c1dd1d4603d285c.tar.gz
tinyproxy-baf634194c89b86b9df42bc84c1dd1d4603d285c.zip
http_message_create(): remove two implicit cast warnings.
Michael
Diffstat (limited to '')
-rw-r--r--src/http-message.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/http-message.c b/src/http-message.c
index 7f54f0d..f95f472 100644
--- a/src/http-message.c
+++ b/src/http-message.c
@@ -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);