mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 22:30:07 +00:00
* sysdeps/posix/getaddrinfo.c (gaih): Mark as const.
* locale/loadlocale.c (_nl_value_types): Likewise.
This commit is contained in:
parent
aa87e9156d
commit
192c0fa590
@ -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.
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user