aboutsummaryrefslogtreecommitdiff
path: root/elf/neededtest3.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/neededtest3.c')
-rw-r--r--elf/neededtest3.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/elf/neededtest3.c b/elf/neededtest3.c
index 41970cf2c7..38b3c6c6b7 100644
--- a/elf/neededtest3.c
+++ b/elf/neededtest3.c
@@ -5,8 +5,6 @@
#include <stdlib.h>
#include <string.h>
-#define MAPS ((struct link_map *) _r_debug.r_map)
-
static int
check_loaded_objects (const char **loaded)
{
@@ -26,10 +24,10 @@ check_loaded_objects (const char **loaded)
printf(" Name\n");
printf(" --------------------------------------------------------\n");
- for (lm = MAPS; lm; lm = lm->l_next)
+ for (lm = _r_debug.r_map; 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);
+ printf(" %s, count = %d\n", lm->l_name, (int) lm->l_opencount);
if (lm->l_type == lt_loaded && lm->l_name)
{
int match = 0;