]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
_dl_sort_fini: Remove unused argument
authorMarek Polacek <mpolacek@redhat.com>
Wed, 20 Jul 2011 00:27:43 +0000 (20:27 -0400)
committerUlrich Drepper <drepper@gmail.com>
Wed, 20 Jul 2011 00:27:43 +0000 (20:27 -0400)
ChangeLog
elf/dl-close.c
elf/dl-fini.c
sysdeps/generic/ldsodefs.h

index 04c72c157a64712e96b5ea6868840a8583d26a49..7ec4bb0ef47837eb6d7a9b6fce6c122fd86ccf01 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-07-14  Marek Polacek  <mpolacek@redhat.com>
+
+       * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
+       * elf/dl-fini.c (_dl_fini): Adjust caller.
+       * elf/dl-close.c (_dl_close_worker): Likewise.
+       * sysdeps/generic/ldsodefs.h: Adjust declaration.
+
 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
 
        * elf/cache.c (load_aux_cache): Remove unnecessary condition of
index 229e288ef6a9a7df605d96c4cf3a06d0c0b2ac66..4cf98c3b994a3bf5b12d68baf7a26a638d8a8979 100644 (file)
@@ -231,7 +231,7 @@ _dl_close_worker (struct link_map *map)
     }
 
   /* Sort the entries.  */
-  _dl_sort_fini (ns->_ns_loaded, maps, nloaded, used, nsid);
+  _dl_sort_fini (maps, nloaded, used, nsid);
 
   /* Call all termination functions at once.  */
 #ifdef SHARED
index 269bcece4c39c229c6770d76e935e53ad09a5ef4..0a138e9126ee70f43a9f7f2f133b7514e4fec669 100644 (file)
@@ -30,8 +30,7 @@ typedef void (*fini_t) (void);
 
 void
 internal_function
-_dl_sort_fini (struct link_map *l, struct link_map **maps, size_t nmaps,
-              char *used, Lmid_t ns)
+_dl_sort_fini (struct link_map **maps, size_t nmaps, char *used, Lmid_t ns)
 {
   /* A list of one element need not be sorted.  */
   if (nmaps == 1)
@@ -199,7 +198,7 @@ _dl_fini (void)
       nmaps = i;
 
       /* Now we have to do the sorting.  */
-      _dl_sort_fini (GL(dl_ns)[ns]._ns_loaded, maps, nmaps, NULL, ns);
+      _dl_sort_fini (maps, nmaps, NULL, ns);
 
       /* We do not rely on the linked list of loaded object anymore from
         this point on.  We have our own list here (maps).  The various
index d0405903c177bbf11de985545814af1b23c1d878..26c74f6ce04f52e10ffac78023b40c5b2985140c 100644 (file)
@@ -1,5 +1,5 @@
 /* Run-time dynamic linker data structures for loaded ELF shared objects.
-   Copyright (C) 1995-2009, 2010 Free Software Foundation, Inc.
+   Copyright (C) 1995-2009, 2010, 2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -947,8 +947,8 @@ extern void _dl_init (struct link_map *main_map, int argc, char **argv,
 extern void _dl_fini (void) internal_function;
 
 /* Sort array MAPS according to dependencies of the contained objects.  */
-extern void _dl_sort_fini (struct link_map *l, struct link_map **maps,
-                          size_t nmaps, char *used, Lmid_t ns)
+extern void _dl_sort_fini (struct link_map **maps, size_t nmaps, char *used,
+                          Lmid_t ns)
      internal_function;
 
 /* The dynamic linker calls this function before and having changing