From 192c0fa590e169374331a449e2c832be21e5f8cd Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 20 Dec 2005 16:51:14 +0000 Subject: * sysdeps/posix/getaddrinfo.c (gaih): Mark as const. * locale/loadlocale.c (_nl_value_types): Likewise. --- sysdeps/posix/getaddrinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sysdeps/posix') diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index b9819bfc0a..46c66a8f7e 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -1098,7 +1098,7 @@ gaih_inet (const char *name, const struct gaih_service *service, return 0; } -static struct gaih gaih[] = +static const struct gaih gaih[] = { { PF_INET6, gaih_inet }, { PF_INET, gaih_inet }, @@ -1461,7 +1461,8 @@ getaddrinfo (const char *name, const char *service, int i = 0, j = 0, last_i = 0; int nresults = 0; struct addrinfo *p = NULL, **end; - struct gaih *g = gaih, *pg = NULL; + const struct gaih *g = gaih; + const struct gaih *pg = NULL; struct gaih_service gaih_service, *pservice; struct addrinfo local_hints; -- cgit 1.4.1