mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-11 15:50:06 +00:00
* sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
variables const to avoid compiler warnings.
This commit is contained in:
parent
0b25a49a94
commit
d4ed756168
@ -12,6 +12,9 @@
|
||||
|
||||
2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
|
||||
|
||||
* sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
|
||||
variables const to avoid compiler warnings.
|
||||
|
||||
* io/fts.c (fts_close): Remove redundant checks.
|
||||
(fts_build): Likewise.
|
||||
(fts_palloc): Likewise.
|
||||
|
@ -1291,8 +1291,8 @@ match_prefix (const struct sockaddr_storage *ss,
|
||||
for (idx = 0; ; ++idx)
|
||||
{
|
||||
unsigned int bits = list[idx].bits;
|
||||
uint8_t *mask = list[idx].prefix.s6_addr;
|
||||
uint8_t *val = in6->sin6_addr.s6_addr;
|
||||
const uint8_t *mask = list[idx].prefix.s6_addr;
|
||||
const uint8_t *val = in6->sin6_addr.s6_addr;
|
||||
|
||||
while (bits >= 8)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user