aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-close.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-close.c')
-rw-r--r--elf/dl-close.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c
index f2f2b8b..a56c144 100644
--- a/elf/dl-close.c
+++ b/elf/dl-close.c
@@ -103,10 +103,10 @@ _dl_close (struct link_map *map)
if (imap->l_global)
{
/* This object is in the global scope list. Remove it. */
- unsigned int cnt = _dl_main_searchlist->r_nlist;
+ int cnt = _dl_main_searchlist->r_nlist;
do
- if (cnt-- == 0)
+ if (--cnt < 0)
break;
while (_dl_main_searchlist->r_list[cnt] != imap);