diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-12-20 16:51:14 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-12-20 16:51:14 +0000 |
commit | 192c0fa590e169374331a449e2c832be21e5f8cd (patch) | |
tree | 2e5a0ecbd7dabe87896761304bf09ea1f5c20dbf | |
parent | aa87e9156d66cfd4848ed7618148ab3018ae69f0 (diff) | |
download | glibc-192c0fa590e169374331a449e2c832be21e5f8cd.tar glibc-192c0fa590e169374331a449e2c832be21e5f8cd.tar.gz glibc-192c0fa590e169374331a449e2c832be21e5f8cd.tar.bz2 glibc-192c0fa590e169374331a449e2c832be21e5f8cd.zip |
* sysdeps/posix/getaddrinfo.c (gaih): Mark as const.cvs/fedora-glibc-20051220T1751
* locale/loadlocale.c (_nl_value_types): Likewise.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 5 |
2 files changed, 5 insertions, 3 deletions
@@ -1,6 +1,7 @@ 2005-12-20 Ulrich Drepper <drepper@redhat.com> - * locale/loadlocale.c (_nl_value_types): Mark as const. + * sysdeps/posix/getaddrinfo.c (gaih): Mark as const. + * locale/loadlocale.c (_nl_value_types): Likewise. * iconv/gconv_conf.c (builtin_aliases): Likewise. * iconv/gconv_open.c (internal_trans_names): Likewise. 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; |