summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-14 14:26:20 +0200
committerVolker Lendecke <vl@samba.org>2010-08-16 13:36:27 +0200
commit13d1e39e473aa7c8cd78b3ca48bbe7889b29f620 (patch)
treecc6ce96ec451c7ffe01e0c163f21eb5551daaead
parent731604d8aeccc4b49db1a7f88a5334788a8ed4ef (diff)
downloadsamba-13d1e39e473aa7c8cd78b3ca48bbe7889b29f620.tar.gz
samba-13d1e39e473aa7c8cd78b3ca48bbe7889b29f620.tar.bz2
samba-13d1e39e473aa7c8cd78b3ca48bbe7889b29f620.zip
s3: Fix some type-punned warnings
-rw-r--r--source3/lib/access.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/access.c b/source3/lib/access.c
index 0b09e83ce3..a7d2262d6b 100644
--- a/source3/lib/access.c
+++ b/source3/lib/access.c
@@ -66,7 +66,9 @@ static bool masked_match(const char *tok, const char *slash, const char *s)
}
}
- return same_net((struct sockaddr *)&ss_host, (struct sockaddr *)&ss_tok, (struct sockaddr *)&ss_mask);
+ return same_net((struct sockaddr *)(void *)&ss_host,
+ (struct sockaddr *)(void *)&ss_tok,
+ (struct sockaddr *)(void *)&ss_mask);
}
/* string_match - match string s against token tok */