mirror of git://sourceware.org/git/glibc.git
(_dl_map_object_from_fd): Remove unused variable. (_dl_map_object): Likewise.
This commit is contained in:
parent
b05598ef31
commit
3509e9f246
|
|
@ -774,8 +774,6 @@ _dl_map_object_from_fd (const char *name, int fd, struct filebuf *fbp,
|
||||||
for (l = _dl_loaded; l; l = l->l_next)
|
for (l = _dl_loaded; l; l = l->l_next)
|
||||||
if (l->l_ino == st.st_ino && l->l_dev == st.st_dev)
|
if (l->l_ino == st.st_ino && l->l_dev == st.st_dev)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
|
||||||
|
|
||||||
/* The object is already loaded.
|
/* The object is already loaded.
|
||||||
Just bump its reference count and return it. */
|
Just bump its reference count and return it. */
|
||||||
__close (fd);
|
__close (fd);
|
||||||
|
|
@ -1457,8 +1455,6 @@ _dl_map_object (struct link_map *loader, const char *name, int preloaded,
|
||||||
/* Look for this name among those already loaded. */
|
/* Look for this name among those already loaded. */
|
||||||
for (l = _dl_loaded; l; l = l->l_next)
|
for (l = _dl_loaded; l; l = l->l_next)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
|
||||||
|
|
||||||
/* If the requested name matches the soname of a loaded object,
|
/* If the requested name matches the soname of a loaded object,
|
||||||
use that object. Elide this check for names that have not
|
use that object. Elide this check for names that have not
|
||||||
yet been opened. */
|
yet been opened. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue