Changeset ca30866 in rtems


Ignore:
Timestamp:
May 27, 2010, 4:50:01 PM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.9
Children:
97137a4
Parents:
797e9a8
git-author:
Ralf Corsepius <ralf.corsepius@…> (05/27/10 16:50:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/24/14 08:12:48)
Message:

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

  • libnetworking/libc/gethostnamadr.c: Try to make crazy address arithmetic more portable.
File:
1 edited

Legend:

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

    r797e9a8 rca30866  
    379379
    380380  result->h_addr_list=(char**)(buf+strlen(name)+1);
    381   result->h_addr_list+=sizeof(unsigned long)-((unsigned long)(result->h_addr_list)&(sizeof(unsigned long)-1));
     381  result->h_addr_list+=sizeof(char*)-((size_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.