mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
lib: Align integer types in same_net()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
d5cca8d0fc
commit
b0d270d934
@ -717,7 +717,7 @@ bool same_net(const struct sockaddr *ip1,
|
||||
char *p1 = (char *)&ip1_6.sin6_addr;
|
||||
char *p2 = (char *)&ip2_6.sin6_addr;
|
||||
char *m = (char *)&mask_6.sin6_addr;
|
||||
int i;
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < sizeof(struct in6_addr); i++) {
|
||||
*p1++ &= *m;
|
||||
|
Loading…
x
Reference in New Issue
Block a user