Two warnings less
Andreas Jaeger
aj@suse.de
Wed Oct 25 07:20:00 GMT 2000
FYI: I'm committing soon the appended patch,
Andreas
2000-10-25 Andreas Jaeger <aj@suse.de>
* elf/dl-load.c (_dl_map_object_from_fd): Remove unused variable.
(_dl_map_object): Likewise.
============================================================
Index: elf/dl-load.c
--- elf/dl-load.c 2000/10/24 07:32:24 1.148
+++ elf/dl-load.c 2000/10/25 14:08:54
@@ -774,8 +774,6 @@
for (l = _dl_loaded; l; l = l->l_next)
if (l->l_ino == st.st_ino && l->l_dev == st.st_dev)
{
- unsigned int i;
-
/* The object is already loaded.
Just bump its reference count and return it. */
__close (fd);
@@ -1457,8 +1455,6 @@
/* Look for this name among those already loaded. */
for (l = _dl_loaded; l; l = l->l_next)
{
- unsigned int i;
-
/* If the requested name matches the soname of a loaded object,
use that object. Elide this check for names that have not
yet been opened. */
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-hacker
mailing list