diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-12-21 20:20:29 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-12-21 20:20:29 +0000 |
commit | a2fbec786be0b4b68c0ad3d5064b17b38c5e6de8 (patch) | |
tree | 484bdc55e4884d1eef97e440c9a081560230fd47 /ACE/ace/Sock_Connect.cpp | |
parent | 1472bf5f39afe45645838e13c09e517bffa8c40f (diff) | |
download | ATCD-a2fbec786be0b4b68c0ad3d5064b17b38c5e6de8.tar.gz |
Thu Dec 21 20:19:04 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/Sock_Connect.cpp')
-rw-r--r-- | ACE/ace/Sock_Connect.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ACE/ace/Sock_Connect.cpp b/ACE/ace/Sock_Connect.cpp index 620da2d21ba..c0ceecbf8c6 100644 --- a/ACE/ace/Sock_Connect.cpp +++ b/ACE/ace/Sock_Connect.cpp @@ -1012,7 +1012,7 @@ get_ip_interfaces_win32 (size_t &count, addrs[j].set (0, devp->nwIPAddress, 0); // Already in net order. - j++; + ++j; } // There's no call to close the DEVHANDLE. } @@ -1491,7 +1491,7 @@ get_ip_interfaces_aix (size_t &count, || req->ifr_addr.sa_family == AF_INET6 # endif ) - num_ifs++; + ++num_ifs; } ACE_NEW_RETURN (addrs,ACE_INET_Addr[num_ifs], -1); @@ -1702,13 +1702,13 @@ ACE::get_ip_interfaces (size_t &count, # endif ) { - int addrlen = static_cast<int> (sizeof (struct sockaddr_in)); + int addrlen = static_cast<int> (sizeof (struct sockaddr_in)); # if defined (ACE_HAS_IPV6) if (addr->sin_family == AF_INET6) addrlen = static_cast<int> (sizeof (struct sockaddr_in6)); # endif addrs[count].set (addr, addrlen); - count++; + ++count; } # else /* ! _UNICOS */ // need to explicitly copy on the Cray, since the bitfields kinda @@ -1729,7 +1729,7 @@ ACE::get_ip_interfaces (size_t &count, # endif /* ! _UNICOS */ } -#if !defined (__QNX__) && !defined (__FreeBSD__) && !defined(__NetBSD__) +#if !defined (__QNX__) && !defined (__FreeBSD__) && !defined(__NetBSD__) && !defined (ACE_HAS_RTEMS) ++pcur; #else if (pcur->ifr_addr.sa_len <= sizeof (struct sockaddr)) @@ -1889,13 +1889,13 @@ return 0; if (ifcfg.ifc_len < 0) break; - if_count++; -#if !defined (__QNX__) && !defined (__FreeBSD__) && !defined(__NetBSD__) - p_ifs++; + ++if_count; +#if !defined (__QNX__) && !defined (__FreeBSD__) && !defined(__NetBSD__) && !defined (ACE_HAS_RTEMS) + ++p_ifs; #else if (p_ifs->ifr_addr.sa_len <= sizeof (struct sockaddr)) { - p_ifs++; + ++p_ifs; } else { @@ -1908,14 +1908,14 @@ return 0; ACE_OS::free (ifcfg.ifc_req); # if defined (ACE_HAS_IPV6) - FILE* fp; + FILE* fp = 0; if ((fp = ACE_OS::fopen (ACE_LIB_TEXT ("/proc/net/if_inet6"), ACE_LIB_TEXT ("r"))) != NULL) { // Scan the lines according to the expected format but don't really read any input while (fscanf (fp, "%*32s %*02x %*02x %*02x %*02x %*8s\n") != EOF) { - if_count++; + ++if_count; } ACE_OS::fclose (fp); } |