r18661: C++ warnings
authorVolker Lendecke <vlendec@samba.org>
Tue, 19 Sep 2006 00:55:40 +0000 (00:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:19:00 +0000 (14:19 -0500)
source/lib/socket_wrapper/socket_wrapper.c

index 5417f70a068b98d09937da968ed39bf12bfbac53..331e23aa48b9b843f7e4541c03975f44a26c6f47 100644 (file)
@@ -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;