1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3: Fix some type-punned warnings

This commit is contained in:
Volker Lendecke 2010-08-14 14:26:20 +02:00
parent 731604d8ae
commit 13d1e39e47

View File

@ -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 */