Changeset 7cf4893 in rtems


Ignore:
Timestamp:
May 29, 2010, 4:32:39 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
e04cfeb
Parents:
6b2c3f11
Message:

2010-05-29 Ralf Corsépius <ralf.corsepius@…>

  • libnetworking/libc/gethostnamadr.c: Cast addr to uintptr_t instead of size_t.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r6b2c3f11 r7cf4893  
    112010-05-29      Ralf Corsépius <ralf.corsepius@rtems.org>
    22
     3        * libnetworking/libc/gethostnamadr.c:
     4        Cast addr to uintptr_t instead of size_t.
    35        * libfs/src/nfsclient/src/xdr_mbuf.c (xdrmbuf_setup):
    46        Cast addr to uintptr_t instead of size_t.
  • cpukit/libnetworking/libc/gethostnamadr.c

    r6b2c3f11 r7cf4893  
    382382
    383383  result->h_addr_list=(char**)(buf+strlen(name)+1);
    384   result->h_addr_list+=sizeof(char*)-((size_t)(result->h_addr_list)&(sizeof(char*)-1));
     384  result->h_addr_list+=sizeof(char*)-((uintptr_t)(result->h_addr_list)&(sizeof(char*)-1));
    385385  result->h_addr_list[0]=(char*)&result->h_addr_list[2];
    386386  if (inet_pton(AF_INET,name,result->h_addr_list[0])) {
Note: See TracChangeset for help on using the changeset viewer.