From d4ed75616838868f7b11f3cb5ee40561a47104ef Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 2 Oct 2006 16:50:55 +0000 Subject: * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val variables const to avoid compiler warnings. --- ChangeLog | 3 +++ sysdeps/posix/getaddrinfo.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 27cb03cc4c..eeb46e3b84 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,9 @@ 2006-10-02 Dmitry V. Levin + * 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. 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) { -- cgit 1.4.1