summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2009-01-29 13:23:09 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2009-01-29 13:23:09 +0000
commitae97e14dcd7e44878e8a5881a51184a491c4a6e0 (patch)
tree269398fe46af9e5b38e957c8c3d831c69f4f7b18
parent818621617d47a302bc8977c49c093e9c1c6cc8a9 (diff)
downloaduClibc-alpine-ae97e14dcd7e44878e8a5881a51184a491c4a6e0.tar.bz2
uClibc-alpine-ae97e14dcd7e44878e8a5881a51184a491c4a6e0.tar.xz
Minor changes to silent compiler warning due to sigdness.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
-rw-r--r--libc/misc/wchar/wchar.c2
-rw-r--r--utils/ldconfig.c8
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)