summaryrefslogtreecommitdiff
path: root/utils/ldconfig.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-01-28 01:04:49 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-01-28 01:04:49 +0000
commitfd37d1975a957343a4b9f0c93fb98d6f91ca91cb (patch)
tree70569471f657633f606e615ffbec5951661d8f0f /utils/ldconfig.c
parentdb5c5752566147689063340a87531ca4ac626a98 (diff)
"make utils" now successfully makes utils for target
Diffstat (limited to 'utils/ldconfig.c')
-rw-r--r--utils/ldconfig.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/ldconfig.c b/utils/ldconfig.c
index c0857bc40..0c53cabb4 100644
--- a/utils/ldconfig.c
+++ b/utils/ldconfig.c
@@ -278,12 +278,12 @@ char *is_shlib(const char *dir, const char *name, int *type,
if (fread(&exec, sizeof exec, 1, file) < 1)
warnx("can't read header from %s, skipping", buff);
else if (N_MAGIC(exec) != ZMAGIC
- && N_MAGIC(exec) != QMAGIC
- && N_MAGIC_SWAP(exec) != ZMAGIC
- && N_MAGIC_SWAP(exec) != QMAGIC) {
+ && N_MAGIC(exec) != QMAGIC
+ && N_MAGIC_SWAP(exec) != ZMAGIC
+ && N_MAGIC_SWAP(exec) != QMAGIC) {
elf_hdr = (ElfW(Ehdr) *) & exec;
if (elf_hdr->e_ident[0] != 0x7f ||
- strncmp(elf_hdr->e_ident+1, "ELF", 3) != 0)
+ strncmp((char *)elf_hdr->e_ident + 1, "ELF", 3) != 0)
{
/* silently ignore linker scripts */
if (strncmp((char *)&exec, "/* GNU ld", 9) != 0)