about summary refs log tree commit diff
path: root/elf/neededtest4.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-03-01 06:55:57 +0000
committerJakub Jelinek <jakub@redhat.com>2006-03-01 06:55:57 +0000
commit6a8c1091fdc978b0e369f4ca3f58a07c2f8b9d33 (patch)
tree754e2649fcc68e83b3ad749cb5a1a1f7549ffafb /elf/neededtest4.c
parent378b1353df56387b0706bc42cb661ff2227c8eb9 (diff)
downloadglibc-6a8c1091fdc978b0e369f4ca3f58a07c2f8b9d33.tar.gz
glibc-6a8c1091fdc978b0e369f4ca3f58a07c2f8b9d33.tar.xz
glibc-6a8c1091fdc978b0e369f4ca3f58a07c2f8b9d33.zip
Updated to fedora-glibc-20060301T0647
Diffstat (limited to 'elf/neededtest4.c')
-rw-r--r--elf/neededtest4.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/elf/neededtest4.c b/elf/neededtest4.c
index 7514bed499..bd79341fb2 100644
--- a/elf/neededtest4.c
+++ b/elf/neededtest4.c
@@ -5,6 +5,8 @@
 #include <stdlib.h>
 #include <string.h>
 
+#define MAPS ((struct link_map *) _r_debug.r_map)
+
 static int
 check_loaded_objects (const char **loaded)
 {
@@ -24,7 +26,7 @@ check_loaded_objects (const char **loaded)
 
   printf("   Name\n");
   printf(" --------------------------------------------------------\n");
-  for (lm = _r_debug.r_map; lm; lm = lm->l_next)
+  for (lm = MAPS; lm; lm = lm->l_next)
     {
       if (lm->l_name && lm->l_name[0])
 	printf(" %s, count = %d\n", lm->l_name, (int) lm->l_direct_opencount);