summaryrefslogtreecommitdiff
path: root/source/lib/socket_wrapper
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-09-08 13:27:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:05:41 -0500
commit5085c53fcfade614e83d21fc2c1a5bc43bb2a729 (patch)
treedc354875e22886c846d7fcc55642bce906e31830 /source/lib/socket_wrapper
parentabe8349f9b4387961ff3665d8c589d61cd2edf31 (diff)
downloadsamba-5085c53fcfade614e83d21fc2c1a5bc43bb2a729.tar.gz
r25027: Fix more warnings.
Diffstat (limited to 'source/lib/socket_wrapper')
-rw-r--r--source/lib/socket_wrapper/socket_wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/socket_wrapper/socket_wrapper.c b/source/lib/socket_wrapper/socket_wrapper.c
index ec074ecaeb0..8458c615923 100644
--- a/source/lib/socket_wrapper/socket_wrapper.c
+++ b/source/lib/socket_wrapper/socket_wrapper.c
@@ -232,7 +232,7 @@ const char *socket_wrapper_dir(void)
return s;
}
-unsigned int socket_wrapper_default_iface(void)
+static unsigned int socket_wrapper_default_iface(void)
{
const char *s = getenv("SOCKET_WRAPPER_DEFAULT_IFACE");
if (s) {
@@ -1288,7 +1288,7 @@ _PUBLIC_ int swrap_accept(int s, struct sockaddr *addr, socklen_t *addrlen)
return -1;
}
- my_addr = malloc(my_addrlen);
+ my_addr = (struct sockaddr *)malloc(my_addrlen);
if (my_addr == NULL) {
return -1;
}