1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Add a cast to silence a warning.

This commit is contained in:
Roland McGrath
2012-08-17 09:49:37 -07:00
parent b2e1c56272
commit b7c08a66f6
2 changed files with 9 additions and 2 deletions

View File

@ -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;