summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-04 14:51:22 +0200
committerMichael Adam <obnox@samba.org>2009-08-04 23:47:28 +0200
commit8f955d55437d9038de701d1531243ef868a57206 (patch)
treefa4423ef5ae810bf110b9dd7689f62f5278f6555
parent50dbd61063b6775bc70ac8e8a6bc4eaf629c44aa (diff)
downloadtinyproxy-8f955d55437d9038de701d1531243ef868a57206.tar.gz
tinyproxy-8f955d55437d9038de701d1531243ef868a57206.zip
child: add explicit cast in child_main().
Michael
-rw-r--r--src/child.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/child.c b/src/child.c
index 716743d..bfa03ab 100644
--- a/src/child.c
+++ b/src/child.c
@@ -179,7 +179,7 @@ child_main (struct child_s *ptr)
struct sockaddr *cliaddr;
socklen_t clilen;
- cliaddr = safemalloc (addrlen);
+ cliaddr = (struct sockaddr *)safemalloc (addrlen);
if (!cliaddr)
{
log_message (LOG_CRIT, "Could not allocate memory for child address.");