Skip to content

Commit

Permalink
* sysdeps/posix/getaddrinfo.c (gaih): Mark as const.
Browse files Browse the repository at this point in the history
	* locale/loadlocale.c (_nl_value_types): Likewise.
  • Loading branch information
Ulrich Drepper committed Dec 20, 2005
1 parent aa87e91 commit 192c0fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
5 changes: 3 additions & 2 deletions sysdeps/posix/getaddrinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 192c0fa

Please sign in to comment.