* net.cc (gethostby_helper): Use correct signedness.
This commit is contained in:
parent
d8f253f952
commit
0a20e5a02b
@ -1,3 +1,7 @@
|
|||||||
|
2009-05-20 Eric Blake <ebb9@byu.net>
|
||||||
|
|
||||||
|
* net.cc (gethostby_helper): Use correct signedness.
|
||||||
|
|
||||||
2009-05-18 Christopher Faylor <me+cygwin@cgf.cx>
|
2009-05-18 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
* mount.cc (mount_info::add_item): Avoid using any-old '/' as
|
* mount.cc (mount_info::add_item): Avoid using any-old '/' as
|
||||||
|
@ -960,7 +960,8 @@ gethostby_helper (const char *name, const int af, const int type,
|
|||||||
|
|
||||||
record * anptr = NULL, * prevptr = NULL, * curptr;
|
record * anptr = NULL, * prevptr = NULL, * curptr;
|
||||||
int i, alias_count = 0, string_size = 0, address_count = 0;
|
int i, alias_count = 0, string_size = 0, address_count = 0;
|
||||||
int complen, namelen1 = 0, address_len = 0, antype, anclass, ansize;
|
int namelen1 = 0, address_len = 0, antype, anclass, ansize;
|
||||||
|
unsigned complen;
|
||||||
|
|
||||||
/* Get the count of answers */
|
/* Get the count of answers */
|
||||||
ancount = ntohs (((HEADER *) msg)->ancount);
|
ancount = ntohs (((HEADER *) msg)->ancount);
|
||||||
@ -1445,20 +1446,20 @@ struct sockaddr_in6_old {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef union sockaddr_gen{
|
typedef union sockaddr_gen{
|
||||||
struct sockaddr Address;
|
struct sockaddr Address;
|
||||||
struct sockaddr_in AddressIn;
|
struct sockaddr_in AddressIn;
|
||||||
struct sockaddr_in6_old AddressIn6;
|
struct sockaddr_in6_old AddressIn6;
|
||||||
} sockaddr_gen;
|
} sockaddr_gen;
|
||||||
|
|
||||||
typedef struct _INTERFACE_INFO {
|
typedef struct _INTERFACE_INFO {
|
||||||
u_long iiFlags;
|
u_long iiFlags;
|
||||||
sockaddr_gen iiAddress;
|
sockaddr_gen iiAddress;
|
||||||
sockaddr_gen iiBroadcastAddress;
|
sockaddr_gen iiBroadcastAddress;
|
||||||
sockaddr_gen iiNetmask;
|
sockaddr_gen iiNetmask;
|
||||||
} INTERFACE_INFO, *LPINTERFACE_INFO;
|
} INTERFACE_INFO, *LPINTERFACE_INFO;
|
||||||
|
|
||||||
#ifndef IN_LOOPBACK
|
#ifndef IN_LOOPBACK
|
||||||
#define IN_LOOPBACK(a) ((((long int) (a)) & 0xff000000) == 0x7f000000)
|
#define IN_LOOPBACK(a) ((((long int) (a)) & 0xff000000) == 0x7f000000)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int in6_are_prefix_equal (struct in6_addr *, struct in6_addr *, int);
|
static int in6_are_prefix_equal (struct in6_addr *, struct in6_addr *, int);
|
||||||
@ -2360,7 +2361,7 @@ if_indextoname (unsigned ifindex, char *ifname)
|
|||||||
We identify the loopback device by its IfIndex of 1. */
|
We identify the loopback device by its IfIndex of 1. */
|
||||||
if (pap->IfIndex == 1 && pap->Ipv6IfIndex == 0)
|
if (pap->IfIndex == 1 && pap->Ipv6IfIndex == 0)
|
||||||
for (PIP_ADAPTER_ADDRESSES pap2 = pa0; pap2; pap2 = pap2->Next)
|
for (PIP_ADAPTER_ADDRESSES pap2 = pa0; pap2; pap2 = pap2->Next)
|
||||||
if (pap2->Ipv6IfIndex == 1)
|
if (pap2->Ipv6IfIndex == 1)
|
||||||
{
|
{
|
||||||
pap = pap2;
|
pap = pap2;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user