diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-10-02 16:50:55 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-10-02 16:50:55 +0000 |
commit | d4ed75616838868f7b11f3cb5ee40561a47104ef (patch) | |
tree | 20dee7d166b4a5e0b5097310bd2b0f389e70e4f1 /sysdeps | |
parent | 0b25a49a94f6d125456f1f3ac70ca7b330b69eda (diff) | |
download | glibc-d4ed75616838868f7b11f3cb5ee40561a47104ef.tar.gz glibc-d4ed75616838868f7b11f3cb5ee40561a47104ef.tar.xz glibc-d4ed75616838868f7b11f3cb5ee40561a47104ef.zip |
* sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
variables const to avoid compiler warnings.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index dd5a57d9e0..9387e20db2 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -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) { |