summaryrefslogtreecommitdiff
path: root/utils/ldconfig.c
diff options
context:
space:
mode:
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)