summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-09 23:08:54 +0200
committerMichael Adam <obnox@samba.org>2009-08-09 23:08:54 +0200
commitbfca4019b7bd0b849d9dabc0ae2c8e94c048b05b (patch)
tree1aba003987cb6fd705b5e1078053faaa87fa1973 /src
parent43fcc9ea3715e4de323eef9a0984a212899d4651 (diff)
Fix three implicit cast warnings in process_request().
Michael
Diffstat (limited to 'src')
-rw-r--r--src/reqs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reqs.c b/src/reqs.c
index 466eff7..1f838b8 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -557,15 +557,15 @@ process_request (struct conn_s *connptr, hashmap_t hashofheaders)
size_t request_len;
/* 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)
return NULL;
request_len = strlen (connptr->request_line) + 1;
- request->method = safemalloc (request_len);
- url = safemalloc (request_len);
- request->protocol = safemalloc (request_len);
+ request->method = (char *)safemalloc (request_len);
+ url = (char *)safemalloc (request_len);
+ request->protocol = (char *)safemalloc (request_len);
if (!request->method || !url || !request->protocol)
{