Commit 6472b6f2 authored by Pekka Pessi's avatar Pekka Pessi

Not using sint32_t.

darcs-hash:20051101140431-65a35-5ba9cedcc18aa2797cd4c940735cadd3e215d8cd.gz
parent 8a52e769
......@@ -28,7 +28,6 @@
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Thu Mar 18 19:40:51 1999 pessi
* @date Last modified: Fri Sep 9 10:56:31 2005 ppessi
*/
#include "config.h"
......
......@@ -30,7 +30,6 @@
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Thu Mar 18 19:40:51 1999 pessi
* @date Last modified: Mon Aug 8 19:10:16 2005 ppessi
*/
/* ---------------------------------------------------------------------- */
......
......@@ -955,8 +955,8 @@ int localinfo0(su_localinfo_t const hints[1], su_localinfo_t **rresult)
/* Map IPv4 address to IPv6 address */
memset(su2, 0, sizeof(*su2));
su2->su_family = AF_INET6;
((sint32_t*)&su2->su_sin6.sin6_addr)[2] = htonl(0xffff);
((sint32_t*)&su2->su_sin6.sin6_addr)[3] = su->su_sin.sin_addr.s_addr;
((int32_t*)&su2->su_sin6.sin6_addr)[2] = htonl(0xffff);
((int32_t*)&su2->su_sin6.sin6_addr)[3] = su->su_sin.sin_addr.s_addr;
su = su2;
}
......@@ -1078,8 +1078,8 @@ int localinfo0(su_localinfo_t const *hints, su_localinfo_t **rresult)
/* Map IPv4 address to IPv6 address */
memset(su2, 0, sizeof(*su2));
su2->su_family = AF_INET6;
((sint32_t*)&su2->su_sin6.sin6_addr)[2] = htonl(0xffff);
((sint32_t*)&su2->su_sin6.sin6_addr)[3] = su->su_sin.sin_addr.s_addr;
((int32_t*)&su2->su_sin6.sin6_addr)[2] = htonl(0xffff);
((int32_t*)&su2->su_sin6.sin6_addr)[3] = su->su_sin.sin_addr.s_addr;
su = su2;
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment