mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 19:11:44 +08:00
2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/gethostnamadr.c: Cast addr to uintptr_t instead of size_t.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* libnetworking/libc/gethostnamadr.c:
|
||||
Cast addr to uintptr_t instead of size_t.
|
||||
* libfs/src/nfsclient/src/xdr_mbuf.c (xdrmbuf_setup):
|
||||
Cast addr to uintptr_t instead of size_t.
|
||||
* librpc/src/xdr/xdr_mem.c (xdr_memcreate):
|
||||
|
||||
@@ -381,7 +381,7 @@ int gethostbyname_r(const char* name,
|
||||
strcpy(buf,name);
|
||||
|
||||
result->h_addr_list=(char**)(buf+strlen(name)+1);
|
||||
result->h_addr_list+=sizeof(char*)-((size_t)(result->h_addr_list)&(sizeof(char*)-1));
|
||||
result->h_addr_list+=sizeof(char*)-((uintptr_t)(result->h_addr_list)&(sizeof(char*)-1));
|
||||
result->h_addr_list[0]=(char*)&result->h_addr_list[2];
|
||||
if (inet_pton(AF_INET,name,result->h_addr_list[0])) {
|
||||
result->h_addrtype=AF_INET;
|
||||
|
||||
Reference in New Issue
Block a user