diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-12-29 14:59:15 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-12-29 14:59:15 +0000 |
commit | 1a407ee53ffd4aa77a249ae67cb685774ead10f1 (patch) | |
tree | ab034e5097a7efc7a4e0b4be448f2dbca708830b | |
parent | 68b4b57e17015a5bec318fd62b330028172ac6a9 (diff) | |
download | uClibc-alpine-1a407ee53ffd4aa77a249ae67cb685774ead10f1.tar.bz2 uClibc-alpine-1a407ee53ffd4aa77a249ae67cb685774ead10f1.tar.xz |
fix signed/unsigned warnings
-rw-r--r-- | utils/ldconfig.c | 4 | ||||
-rw-r--r-- | utils/ldd.c | 4 | ||||
-rw-r--r-- | utils/readelf.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/utils/ldconfig.c b/utils/ldconfig.c index 85ce015d5..f54eadd27 100644 --- a/utils/ldconfig.c +++ b/utils/ldconfig.c @@ -779,10 +779,10 @@ void cache_write(void) for (cur_lib = lib_head; cur_lib != NULL; cur_lib = cur_lib->next) { - if (write(cachefd, cur_lib->soname, strlen(cur_lib->soname) + 1) + if ((size_t)write(cachefd, cur_lib->soname, strlen(cur_lib->soname) + 1) != strlen(cur_lib->soname) + 1) err(EXIT_FATAL,"can't write %s~ (%s)", cachefile, strerror(errno)); - if (write(cachefd, cur_lib->libname, strlen(cur_lib->libname) + 1) + if ((size_t)write(cachefd, cur_lib->libname, strlen(cur_lib->libname) + 1) != strlen(cur_lib->libname) + 1) err(EXIT_FATAL,"can't write %s~ (%s)", cachefile, strerror(errno)); } diff --git a/utils/ldd.c b/utils/ldd.c index dbd2f6de8..c46223a03 100644 --- a/utils/ldd.c +++ b/utils/ldd.c @@ -191,7 +191,7 @@ inline uint64_t byteswap64_to_host(uint64_t value) # define byteswap_to_host(x) byteswap64_to_host(x) #endif -ElfW(Shdr) * elf_find_section_type( int key, ElfW(Ehdr) *ehdr) +ElfW(Shdr) * elf_find_section_type( uint32_t key, ElfW(Ehdr) *ehdr) { int j; ElfW(Shdr) *shdr; @@ -204,7 +204,7 @@ ElfW(Shdr) * elf_find_section_type( int key, ElfW(Ehdr) *ehdr) return NULL; } -ElfW(Phdr) * elf_find_phdr_type( int type, ElfW(Ehdr) *ehdr) +ElfW(Phdr) * elf_find_phdr_type( uint32_t type, ElfW(Ehdr) *ehdr) { int j; ElfW(Phdr) *phdr = (ElfW(Phdr) *)(ehdr->e_phoff + (char *)ehdr); diff --git a/utils/readelf.c b/utils/readelf.c index c7516ef4f..f538fdec0 100644 --- a/utils/readelf.c +++ b/utils/readelf.c @@ -64,7 +64,7 @@ inline uint64_t byteswap64_to_host(uint64_t value) # define byteswap_to_host(x) byteswap32_to_host(x) #endif -ElfW(Shdr) * elf_find_section_type( int key, ElfW(Ehdr) *ehdr) +ElfW(Shdr) * elf_find_section_type( uint32_t key, ElfW(Ehdr) *ehdr) { int j; ElfW(Shdr) *shdr = (ElfW(Shdr) *)(ehdr->e_shoff + (char *)ehdr); @@ -76,7 +76,7 @@ ElfW(Shdr) * elf_find_section_type( int key, ElfW(Ehdr) *ehdr) return NULL; } -ElfW(Phdr) * elf_find_phdr_type( int type, ElfW(Ehdr) *ehdr) +ElfW(Phdr) * elf_find_phdr_type( uint32_t type, ElfW(Ehdr) *ehdr) { int j; ElfW(Phdr) *phdr = (ElfW(Phdr) *)(ehdr->e_phoff + (char *)ehdr); |