diff options
| -rw-r--r-- | libc/misc/wchar/wchar.c | 2 | ||||
| -rw-r--r-- | utils/ldconfig.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libc/misc/wchar/wchar.c b/libc/misc/wchar/wchar.c index d921e4363..1ca4600b4 100644 --- a/libc/misc/wchar/wchar.c +++ b/libc/misc/wchar/wchar.c @@ -1660,7 +1660,7 @@ int main(int argc, char **argv) if (opts[5]) { /* -l */ fprintf(stderr, "Recognized codesets:\n"); - for (s = __iconv_codesets ; *s ; s += *s) { + for (s = (char *)__iconv_codesets ; *s ; s += *s) { fprintf(stderr," %s\n", s+2); } s = __LOCALE_DATA_CODESET_LIST; 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) |
