summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-09-19 00:55:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:19:00 -0500
commit4209af5a84baddd8537f3658975af3e068034c89 (patch)
treed3abdbe122e3aeaf3dcd1babb7215f469a7c6f73 /source4
parent07fb9f2f048a79445dc75cbe2c1061d9796fca67 (diff)
downloadsamba-4209af5a84baddd8537f3658975af3e068034c89.tar.gz
samba-4209af5a84baddd8537f3658975af3e068034c89.tar.bz2
samba-4209af5a84baddd8537f3658975af3e068034c89.zip
r18661: C++ warnings
(This used to be commit 771d30ca0c9d108b800bcfe33069f38dc4382662)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/socket_wrapper/socket_wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/socket_wrapper/socket_wrapper.c b/source4/lib/socket_wrapper/socket_wrapper.c
index 5417f70a06..331e23aa48 100644
--- a/source4/lib/socket_wrapper/socket_wrapper.c
+++ b/source4/lib/socket_wrapper/socket_wrapper.c
@@ -473,7 +473,7 @@ _PUBLIC_ int swrap_socket(int family, int type, int protocol)
if (fd == -1) return -1;
- si = calloc(1, sizeof(struct socket_info));
+ si = (struct socket_info *)calloc(1, sizeof(struct socket_info));
si->family = family;
si->type = type;
@@ -518,7 +518,7 @@ _PUBLIC_ int swrap_accept(int s, struct sockaddr *addr, socklen_t *addrlen)
return ret;
}
- child_si = malloc(sizeof(struct socket_info));
+ child_si = (struct socket_info *)malloc(sizeof(struct socket_info));
memset(child_si, 0, sizeof(*child_si));
child_si->fd = fd;