Changeset 97137a4 in rtems


Ignore:
Timestamp:
May 29, 2010, 4:32:39 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.9
Children:
8553d64
Parents:
ca30866
git-author:
Ralf Corsepius <ralf.corsepius@…> (05/29/10 04:32:39)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/24/14 08:14:07)
Message:

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

  • libnetworking/libc/gethostnamadr.c: Cast addr to uintptr_t instead of size_t.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/libc/gethostnamadr.c

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