svn commit: trunk/uClibc/utils
vapier at uclibc.org
vapier at uclibc.org
Thu Dec 29 14:59:17 UTC 2005
Author: vapier
Date: 2005-12-29 06:59:15 -0800 (Thu, 29 Dec 2005)
New Revision: 13014
Log:
fix signed/unsigned warnings
Modified:
trunk/uClibc/utils/ldconfig.c
trunk/uClibc/utils/ldd.c
trunk/uClibc/utils/readelf.c
Changeset:
Modified: trunk/uClibc/utils/ldconfig.c
===================================================================
--- trunk/uClibc/utils/ldconfig.c 2005-12-29 11:28:40 UTC (rev 13013)
+++ trunk/uClibc/utils/ldconfig.c 2005-12-29 14:59:15 UTC (rev 13014)
@@ -779,10 +779,10 @@
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));
}
Modified: trunk/uClibc/utils/ldd.c
===================================================================
--- trunk/uClibc/utils/ldd.c 2005-12-29 11:28:40 UTC (rev 13013)
+++ trunk/uClibc/utils/ldd.c 2005-12-29 14:59:15 UTC (rev 13014)
@@ -191,7 +191,7 @@
# 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 @@
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);
Modified: trunk/uClibc/utils/readelf.c
===================================================================
--- trunk/uClibc/utils/readelf.c 2005-12-29 11:28:40 UTC (rev 13013)
+++ trunk/uClibc/utils/readelf.c 2005-12-29 14:59:15 UTC (rev 13014)
@@ -64,7 +64,7 @@
# 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 @@
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);
More information about the uClibc-cvs
mailing list