Replaced uint32_t with unsigned int to fix broken builds on a couple of platforms.

pull/1/head
Guenter Knauf 15 years ago
parent e3b04e5a47
commit 28ff9336d5
  1. 2
      ares.h
  2. 2
      ares_private.h

@ -317,7 +317,7 @@ CARES_EXTERN void ares_cancel(ares_channel channel);
* connection. Use these to specify source IP and/or network device * connection. Use these to specify source IP and/or network device
* on multi-homed systems. * on multi-homed systems.
*/ */
CARES_EXTERN void ares_set_local_ip4(ares_channel channel, uint32_t local_ip); CARES_EXTERN void ares_set_local_ip4(ares_channel channel, unsigned int local_ip);
/* local_ip6 should be 16 bytes in length */ /* local_ip6 should be 16 bytes in length */
CARES_EXTERN void ares_set_local_ip6(ares_channel channel, CARES_EXTERN void ares_set_local_ip6(ares_channel channel,

@ -261,7 +261,7 @@ struct ares_channeldata {
* them null/zero for no binding. * them null/zero for no binding.
*/ */
char local_dev_name[32]; char local_dev_name[32];
uint32_t local_ip4; unsigned int local_ip4;
unsigned char local_ip6[16]; unsigned char local_ip6[16];
int optmask; /* the option bitfield passed in at init time */ int optmask; /* the option bitfield passed in at init time */

Loading…
Cancel
Save