about summary refs log tree commit diff
path: root/elf/dl-close.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-21 00:14:27 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-21 00:14:27 +0000
commit82df2969f85d63e08f0c6ea33c0602c29039ec51 (patch)
treee0b06f1883f02953c24afacdaa19c81864ac7ed8 /elf/dl-close.c
parent1e2623127469890c7912d12a8ba5bc70d068eb18 (diff)
downloadglibc-82df2969f85d63e08f0c6ea33c0602c29039ec51.tar.gz
glibc-82df2969f85d63e08f0c6ea33c0602c29039ec51.tar.xz
glibc-82df2969f85d63e08f0c6ea33c0602c29039ec51.zip
Update.
1999-01-21  Ulrich Drepper  <drepper@cygnus.com>

	* manager.c (pthread_allocate_stack): Set
	__pthread_nonstandard_stacks if user-specified stack is used.
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 f2f2b8bdce..a56c14400c 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);