1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r18661: C++ warnings

This commit is contained in:
Volker Lendecke 2006-09-19 00:55:40 +00:00 committed by Gerald (Jerry) Carter
parent 6df2c04e03
commit 771d30ca0c

View 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;