diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-14 14:26:20 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-16 13:36:27 +0200 |
commit | 13d1e39e473aa7c8cd78b3ca48bbe7889b29f620 (patch) | |
tree | cc6ce96ec451c7ffe01e0c163f21eb5551daaead /source3/lib | |
parent | 731604d8aeccc4b49db1a7f88a5334788a8ed4ef (diff) | |
download | samba-13d1e39e473aa7c8cd78b3ca48bbe7889b29f620.tar.gz samba-13d1e39e473aa7c8cd78b3ca48bbe7889b29f620.tar.bz2 samba-13d1e39e473aa7c8cd78b3ca48bbe7889b29f620.zip |
s3: Fix some type-punned warnings
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/access.c | 4 |
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 */ |