Commit Graph
11 Commits
Author SHA1 Message Date
Ben Greear 293cd31700 Add missing break that caused get_ares_servers to fail.
Reported-by: Ning Dong <flintning@163.com>
Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-08-24 16:52:29 -07:00
Ben Greear 9912637d32 sock-addr-storage: Detect and deal with lack of .ss_family member.
AIX, at least, does not have sockaddr_storage.ss_family member.
Detect this in the configure logic and use proper #ifdefs in the
ares_process logic.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Tested-by: Tor Arntsen <tor@spacetec.no>
2010-08-04 07:42:01 -07:00
Ben Greear 3392a50ea3 typo: Fix compile bug for platforms that don't have sockaddr_storage.
Bug was introduced by me in previous commit.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-31 12:21:08 -07:00
Ben Greear 07bc7ea795 Fix aliasing warning in gcc 4.4.4 (at least).
Should be no functional change, though the code gets a bit
ugglier.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-31 07:11:27 -07:00
Ben Greear 8d33804971 cast arg to isdigit to int
Looks like it might silence a warning on Netware build.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-30 15:11:54 -07:00
Ben Greear f575aea364 remove all uses of uint32_t
Previous fix forgot a few.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-30 10:09:57 -07:00
Ben Greear 03c1378e84 fix signed v/s unsigned casts warning in ares_gethostbyaddr.c
Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-30 09:30:49 -07:00
Ben Greear 1ac83339e3 local-bind-fixup: Fix inet_pton warning.
Conditionally include <arpa/inet.h> for inet_pton
headers.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-30 00:10:16 -07:00
Ben Greear 45557a138e build: Enable compiling with -Werror.
This helps find compile warnings because they simply break
the build.

To use:
./configure --enable-warnings --enable-werror

Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-29 23:43:02 -07:00
Ben Greear 3e33e2c2ba ipv6: Fix some build issues related to the local-bind feature.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-29 22:31:56 -07:00
Ben Greear e3b04e5a47 local-bind: Support binding to local interface/IPs
Add 3 new functions to set the local binding for the out-going
socket connection, and add ares_set_servers_csv() to set a
list of servers at once as a comma-separated string.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-18 23:58:39 +02:00