aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-fini.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2011-10-25 13:30:44 +0200
committerAndreas Schwab <schwab@redhat.com>2011-10-25 13:33:12 +0200
commit16437fece4208f299972a5f7e3fc04b2d4402334 (patch)
treeff461bbe8a21736f95c9fdce7a257c1f237f7bde /elf/dl-fini.c
parent31d3cc00b0cc5205b4b4efd73c911cfddff444c6 (diff)
downloadglibc-16437fece4208f299972a5f7e3fc04b2d4402334.zip
glibc-16437fece4208f299972a5f7e3fc04b2d4402334.tar.gz
glibc-16437fece4208f299972a5f7e3fc04b2d4402334.tar.bz2
Small optimization of dependency sorting
Diffstat (limited to 'elf/dl-fini.c')
-rw-r--r--elf/dl-fini.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-fini.c b/elf/dl-fini.c
index 6df80ef..9fd913e 100644
--- a/elf/dl-fini.c
+++ b/elf/dl-fini.c
@@ -44,7 +44,7 @@ _dl_sort_fini (struct link_map **maps, size_t nmaps, char *used, Lmid_t ns)
while (1)
{
/* Keep track of which object we looked at this round. */
- seen[i] += seen[i] < 2;
+ ++seen[i];
struct link_map *thisp = maps[i];
/* Do not handle ld.so in secondary namespaces and object which