diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-01-11 22:27:08 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-01-11 22:27:08 +0000 |
commit | 22fa157fce1468f47c69a4cc4a3b2e6dc3b2fcd8 (patch) | |
tree | 35115dedb09508c7b43e296cdb322f5d1debf52a | |
parent | b5b1ca8efd2d0418614cc1e9c176fec1909f83ac (diff) |
Reverse order of ^lib and '/' checks since ^lib is cheaper; espie@
-rw-r--r-- | gnu/usr.bin/ld/rtld/rtld.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/usr.bin/ld/rtld/rtld.c b/gnu/usr.bin/ld/rtld/rtld.c index 00291ea92f6..308a12d7345 100644 --- a/gnu/usr.bin/ld/rtld/rtld.c +++ b/gnu/usr.bin/ld/rtld/rtld.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld.c,v 1.14 2000/01/11 21:38:47 millert Exp $ */ +/* $OpenBSD: rtld.c,v 1.15 2000/01/11 22:27:07 millert Exp $ */ /* $NetBSD: rtld.c,v 1.43 1996/01/14 00:35:17 pk Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -1420,14 +1420,14 @@ build_sod(name, sodp) sodp->sod_library = 0; sodp->sod_major = sodp->sod_minor = 0; - /* is this a filename? */ - if (strchr((char *)sodp->sod_name, '/')) - return; - /* does it look like /^lib/ ? */ if (strncmp((char *)sodp->sod_name, "lib", 3) != 0) return; + /* is this a filename? */ + if (strchr((char *)sodp->sod_name, '/')) + return; + /* skip over 'lib' */ cp = (char *)sodp->sod_name + 3; |