diff options
author | Roland McGrath <roland@hack.frob.com> | 2012-08-17 09:49:37 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2012-08-17 09:49:37 -0700 |
commit | b7c08a66f6b8855ce93743a0f4587667301fa8f9 (patch) | |
tree | 553e6c6be3375154184ae73c1923fd425de490b2 /elf | |
parent | b2e1c562728699642e98c528bed175929cceff4d (diff) | |
download | glibc-b7c08a66f6b8855ce93743a0f4587667301fa8f9.zip glibc-b7c08a66f6b8855ce93743a0f4587667301fa8f9.tar.gz glibc-b7c08a66f6b8855ce93743a0f4587667301fa8f9.tar.bz2 |
Add a cast to silence a warning.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-close.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c index 216bd81..e6ff7e7 100644 --- a/elf/dl-close.c +++ b/elf/dl-close.c @@ -486,7 +486,7 @@ _dl_close_worker (struct link_map *map) /* Speed up removing most recently added objects. */ j = cnt; else - for (i = 0; i < cnt; i++) + for (i = 0; i < cnt; i++) if (ns_msl->r_list[i]->l_removed == 0) { if (i != j) @@ -641,7 +641,11 @@ _dl_close_worker (struct link_map *map) #ifdef SHARED assert (nsid != LM_ID_BASE); #endif - r->r_map = ns->_ns_loaded = imap->l_next; + ns->_ns_loaded = imap->l_next; + + /* Update the pointer to the head of the list + we leave for debuggers to examine. */ + r->r_map = (void *) ns->_ns_loaded; } --ns->_ns_nloaded; |