about summary refs log tree commit diff
path: root/sysdeps/posix/getaddrinfo.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-12-20 18:05:57 +0000
committerJakub Jelinek <jakub@redhat.com>2005-12-20 18:05:57 +0000
commit2bf037b4e8e189e910a41744d79404b94235ab8b (patch)
treeec0234c3f56396c982e3ed5a77780423502a111f /sysdeps/posix/getaddrinfo.c
parent20a911071d1cfaf7d20d088efe9ede27c5809c09 (diff)
downloadglibc-2bf037b4e8e189e910a41744d79404b94235ab8b.tar.gz
glibc-2bf037b4e8e189e910a41744d79404b94235ab8b.tar.xz
glibc-2bf037b4e8e189e910a41744d79404b94235ab8b.zip
Updated to fedora-glibc-20051220T1751 cvs/fedora-glibc-2_3_90-21
Diffstat (limited to 'sysdeps/posix/getaddrinfo.c')
-rw-r--r--sysdeps/posix/getaddrinfo.c5
1 files changed, 3 insertions, 2 deletions
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;