Yang Tse [Fri, 3 Dec 2010 03:35:05 +0000 (04:35 +0100)]
build: config.dos renamed to config-dos.h
Yang Tse [Thu, 2 Dec 2010 19:53:12 +0000 (20:53 +0100)]
build: provide SIZEOF_SIZE_T netware definition
Yang Tse [Thu, 2 Dec 2010 18:45:00 +0000 (19:45 +0100)]
ares_gethostbyaddr: fix compiler warning: conversion may lose significant bits
Yang Tse [Thu, 2 Dec 2010 18:08:46 +0000 (19:08 +0100)]
configure: undo using autobuilds to temporarily verify strict aliasing warnings.
Yang Tse [Thu, 2 Dec 2010 14:43:18 +0000 (15:43 +0100)]
fix compiler warning: rounding, sign extension, or loss of accuracy may result
Ben Noordhuis [Thu, 2 Dec 2010 09:47:50 +0000 (10:47 +0100)]
ares_parse_a_reply: fix CNAME response parsing
Reply to a CNAME query doesn't contain addresses, causing
ares_parse_a_reply() to bail out with ARES_ENODATA
Bug: http://groups.google.com/group/nodejs/browse_thread/thread/
a1268c9ea5e9ad9b
Yang Tse [Wed, 1 Dec 2010 22:36:19 +0000 (23:36 +0100)]
fix compiler warning: conversion may lose significant bits
Yang Tse [Mon, 29 Nov 2010 01:22:08 +0000 (02:22 +0100)]
atoi: remove atoi usage
Yang Tse [Sun, 28 Nov 2010 19:56:17 +0000 (20:56 +0100)]
ares_init: fix compiler warning: conversion may lose significant bits
Yang Tse [Thu, 25 Nov 2010 02:07:29 +0000 (03:07 +0100)]
configure: fix autoconf warning
Yang Tse [Thu, 25 Nov 2010 01:19:36 +0000 (02:19 +0100)]
inet_pton: fix compiler warning
Yang Tse [Thu, 18 Nov 2010 16:11:38 +0000 (17:11 +0100)]
configure: use autobuilds to temporarily verify strict aliasing warnings.
Temporarily, When cross-compiling with gcc 3.0 or later, enable strict aliasing
rules and warnings. Given that cross-compiled targets autobuilds do not run the
test-suite, there is no risk of running code that violates strict aliasing rules
Yang Tse [Tue, 16 Nov 2010 19:15:55 +0000 (20:15 +0100)]
ares_getnameinfo: Partially revert commit
85520d66e0ac7ac73411bc25e98769a88b2f
Upon socket address family and length validation failure return ARES_ENOTIMP
in callback again, this is the error code documented in man page and used
mostly all over the library.
Yang Tse [Tue, 16 Nov 2010 18:41:03 +0000 (19:41 +0100)]
ares_getnameinfo: Validate socket address family and length.
Validate socket address family and that the socket address length is appropriate
for the specified family. Failure is reported with ARES_EBADFAMILY in callback.
Yang Tse [Tue, 16 Nov 2010 18:08:07 +0000 (19:08 +0100)]
ares_getnameinfo: fix two compiler warnings
Yang Tse [Tue, 16 Nov 2010 02:33:54 +0000 (03:33 +0100)]
Added another VS10 version string
Yang Tse [Sun, 14 Nov 2010 03:42:10 +0000 (04:42 +0100)]
Fix GCC 4 compiler warning 'dereferencing type-punned pointer might break strict-aliasing rules'.
Yang Tse [Sat, 13 Nov 2010 13:06:44 +0000 (14:06 +0100)]
Yang Tse [Sat, 13 Nov 2010 03:15:16 +0000 (04:15 +0100)]
configure: fix autoconf 2.68 warning: no AC_LANG_SOURCE call detected in body
Yang Tse [Fri, 12 Nov 2010 18:46:13 +0000 (19:46 +0100)]
Fix compiler warning: array subscript has type 'char'
Yang Tse [Fri, 12 Nov 2010 18:00:29 +0000 (19:00 +0100)]
Fix GCC 4 compiler warning 'dereferencing type-punned pointer might break strict-aliasing rules'.
Yang Tse [Fri, 12 Nov 2010 17:53:58 +0000 (18:53 +0100)]
Revert following commits:
07bc7ea79509bcc9ef6e09151e81766ed00d3392
3392a50ea3f8573ea4b7a9d82b9833dab60cb0e9
9912637d32c9987719a1ea12db591aee2941891c
The purpose of the whole patch was to silence a compiler warning triggered
with GCC 4 on file ares_process.c The specific compiler warning was
'dereferencing type-punned pointer might break strict-aliasing rules'.
A simpler patch will follow to equally silence the warning.
Yang Tse [Fri, 12 Nov 2010 15:34:34 +0000 (16:34 +0100)]
ares_options: reorder header inclusions to make inclusion of
ares_private.h the last included one again.
Patrik Thunstrom [Fri, 12 Nov 2010 13:07:11 +0000 (14:07 +0100)]
adig: fix NAPTR parsing
I ran across a small "issue" in your adig example.
It is simply the last part of the NAPTR record, the replacement element,
which is not a string, as currently handled in adig, but a domain name.
Daniel Stenberg [Tue, 5 Oct 2010 17:42:39 +0000 (19:42 +0200)]
ares_save_options: assignments instead of memcpy
Daniel Stenberg [Tue, 5 Oct 2010 17:36:17 +0000 (19:36 +0200)]
init_by_options: don't copy an empty sortlist
If there aren't any sort items to copy, don't bother. Without this
little precaution it would do a malloc(0) which causes undefined
behaviors and is frowned upon by curl's memdebug-system.
Guenter Knauf [Sun, 3 Oct 2010 20:55:42 +0000 (22:55 +0200)]
Minor Watcom makefile tweaks.
Mike Crowe [Thu, 23 Sep 2010 16:46:34 +0000 (18:46 +0200)]
Fix lookup with HOSTALIASES set.
ares__read_line returns ARES_EOF when it reaches the end of the
file. This will happen every time when reading to the end of the
HOSTALIASES file. Unfortunately single_domain treats this error as
being fatal.
Signed-off-by: Mike Crowe <mac@mcrowe.com>
Ben Greear [Tue, 24 Aug 2010 23:48:47 +0000 (16:48 -0700)]
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>
Yang Tse [Wed, 11 Aug 2010 12:08:18 +0000 (14:08 +0200)]
configure: werror related adjustments
Guenter Knauf [Sun, 8 Aug 2010 09:18:38 +0000 (11:18 +0200)]
Added copyright string to ares_version.h and make use of it in other files.
Guenter Knauf [Sun, 8 Aug 2010 08:26:04 +0000 (10:26 +0200)]
Block created ares_build.h for NetWare to avoid usage from other platforms.
Guenter Knauf [Sat, 7 Aug 2010 16:35:47 +0000 (18:35 +0200)]
Fix to overwrite default libname.
Guenter Knauf [Fri, 6 Aug 2010 01:53:03 +0000 (03:53 +0200)]
Some more Watcom makefile massage ...
Guenter Knauf [Fri, 6 Aug 2010 01:48:25 +0000 (03:48 +0200)]
Some more Watcom makefile massage ...
Ben Greear [Wed, 4 Aug 2010 14:42:01 +0000 (07:42 -0700)]
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>
Guenter Knauf [Mon, 2 Aug 2010 23:21:56 +0000 (01:21 +0200)]
Added Watcom makefile based on libcurl's Makefile.Watcom.
Ben Greear [Sat, 31 Jul 2010 19:21:08 +0000 (12:21 -0700)]
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>
Ben Greear [Sat, 31 Jul 2010 14:10:23 +0000 (07:10 -0700)]
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>
Daniel Stenberg [Fri, 30 Jul 2010 22:15:38 +0000 (00:15 +0200)]
ares_set_servers_csv: use ISDIGIT
The IS*() set of macros are preferred to the regular is*() functions as
they help us avoid the most common pitfalls.
Ben Greear [Fri, 30 Jul 2010 22:11:54 +0000 (15:11 -0700)]
cast arg to isdigit to int
Looks like it might silence a warning on Netware build.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Ben Greear [Fri, 30 Jul 2010 17:09:57 +0000 (10:09 -0700)]
remove all uses of uint32_t
Previous fix forgot a few.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Ben Greear [Fri, 30 Jul 2010 16:30:49 +0000 (09:30 -0700)]
fix signed v/s unsigned casts warning in ares_gethostbyaddr.c
Signed-off-by: Ben Greear <greearb@candelatech.com>
Ben Greear [Fri, 30 Jul 2010 07:10:16 +0000 (00:10 -0700)]
local-bind-fixup: Fix inet_pton warning.
Conditionally include <arpa/inet.h> for inet_pton
headers.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Ben Greear [Fri, 30 Jul 2010 06:43:02 +0000 (23:43 -0700)]
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>
Ben Greear [Thu, 29 Jul 2010 15:24:59 +0000 (08:24 -0700)]
ipv6: Fix some build issues related to the local-bind feature.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Guenter Knauf [Thu, 29 Jul 2010 21:27:46 +0000 (23:27 +0200)]
Replaced uint32_t with unsigned int to fix broken builds on a couple of platforms.
Ben Greear [Sun, 18 Jul 2010 21:58:39 +0000 (23:58 +0200)]
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>
Daniel Stenberg [Fri, 11 Jun 2010 15:03:41 +0000 (17:03 +0200)]
version: now start on 1.7.4
Andrew C. Morrow [Wed, 16 Jun 2010 02:18:24 +0000 (10:18 +0800)]
fix memory leak in ares_getnameinfo
Daniel Stenberg [Fri, 11 Jun 2010 14:58:28 +0000 (16:58 +0200)]
changelogs: updated for 1.7.3
BogDan Vatra [Fri, 11 Jun 2010 08:47:00 +0000 (10:47 +0200)]
init: allow c-ares to work on Android OS
Daniel Stenberg [Fri, 11 Jun 2010 08:37:37 +0000 (10:37 +0200)]
changelog: fill in the 1.7.2 changes
Daniel Stenberg [Fri, 11 Jun 2010 06:23:14 +0000 (08:23 +0200)]
added another pdf to ignore
Yang Tse [Thu, 10 Jun 2010 23:56:12 +0000 (01:56 +0200)]
add ares_parse_mx_reply.c to VS dsp file
Daniel Stenberg [Thu, 10 Jun 2010 21:22:59 +0000 (23:22 +0200)]
tarball: add $(CSOURCES) $(HHEADERS) to EXTRA_DIST
It's not clear to me why we need this, but we apparently may
otherwise not get all files bundled in the dist tarball.
Daniel Stenberg [Thu, 10 Jun 2010 09:47:23 +0000 (11:47 +0200)]
version: start working on 1.7.3
Daniel Stenberg [Thu, 10 Jun 2010 09:43:57 +0000 (11:43 +0200)]
RELEASE-NOTES: 1.7.2 details added
Jakub Hrozek [Mon, 31 May 2010 14:32:54 +0000 (16:32 +0200)]
ares_init: Last, not first instance of domain or search should win
Daniel Stenberg [Wed, 26 May 2010 21:16:28 +0000 (23:16 +0200)]
style: make code less than 80 columns wide
Tor Arntsen [Mon, 31 May 2010 12:08:35 +0000 (14:08 +0200)]
improve alternative definition of bool to use enum instead of unsigned char
Yang Tse [Mon, 31 May 2010 11:53:37 +0000 (13:53 +0200)]
fix VS2010 compiler warnings
Jérémy Lal [Sat, 17 Apr 2010 22:29:26 +0000 (00:29 +0200)]
added ares_parse_mx_reply
Daniel Stenberg [Sat, 27 Mar 2010 18:43:33 +0000 (19:43 +0100)]
repair the file mode
Daniel Stenberg [Sat, 27 Mar 2010 18:41:32 +0000 (19:41 +0100)]
remove all $Id$ lines
Daniel Stenberg [Sat, 27 Mar 2010 18:36:38 +0000 (19:36 +0100)]
remove all .cvsignore files
Daniel Stenberg [Thu, 25 Mar 2010 13:06:26 +0000 (14:06 +0100)]
spell fix
reported by Gregor Jasny on the mailing list
Peter Pentchev [Thu, 25 Mar 2010 11:48:39 +0000 (12:48 +0100)]
Fix a couple of typos and grammar nits.
Daniel Stenberg [Tue, 23 Mar 2010 13:56:21 +0000 (14:56 +0100)]
ignore the GPG signature files too
Daniel Stenberg [Tue, 23 Mar 2010 13:56:04 +0000 (14:56 +0100)]
start the journey towards 1.7.2
Daniel Stenberg [Tue, 23 Mar 2010 13:49:52 +0000 (14:49 +0100)]
no longer CVS tagging
Daniel Stenberg [Tue, 23 Mar 2010 13:49:41 +0000 (14:49 +0100)]
ignore generated PDFs
Daniel Stenberg [Tue, 23 Mar 2010 13:47:56 +0000 (14:47 +0100)]
1.7.1
Daniel Stenberg [Tue, 23 Mar 2010 13:12:50 +0000 (14:12 +0100)]
made README the primary readme file
... and did README.cares to contain a historic reason etc.
Daniel Stenberg [Tue, 23 Mar 2010 13:04:26 +0000 (14:04 +0100)]
s/CVS/git
Daniel Stenberg [Tue, 23 Mar 2010 13:00:48 +0000 (14:00 +0100)]
git now, not CVS
Daniel Stenberg [Tue, 23 Mar 2010 12:51:47 +0000 (13:51 +0100)]
ignore lots of generated files
Daniel Johnson [Tue, 23 Mar 2010 12:43:34 +0000 (13:43 +0100)]
Fix warnings for clang
Yang Tse [Wed, 17 Mar 2010 10:44:28 +0000 (10:44 +0000)]
replaced intel compiler option -no-ansi-alias with -fno-strict-aliasing
Yang Tse [Wed, 17 Mar 2010 10:39:07 +0000 (10:39 +0000)]
update outdated serial number
Yang Tse [Thu, 11 Mar 2010 18:53:42 +0000 (18:53 +0000)]
fix compiler warning
Yang Tse [Tue, 9 Mar 2010 17:59:35 +0000 (17:59 +0000)]
watt32 compilation fix
Yang Tse [Sat, 6 Mar 2010 10:52:56 +0000 (10:52 +0000)]
Added another VS10 version string
Yang Tse [Sat, 6 Mar 2010 02:33:25 +0000 (02:33 +0000)]
fix line break
Yang Tse [Sat, 6 Mar 2010 01:23:09 +0000 (01:23 +0000)]
removed usage of 's6_addr', fixing compilation issue triggered with no
longer using 'in6_addr' but only our 'ares_in6_addr' struct
Daniel Stenberg [Fri, 5 Mar 2010 22:53:31 +0000 (22:53 +0000)]
Daniel Johnson provided fixes for building with the clang compiler
Yang Tse [Fri, 5 Mar 2010 20:01:47 +0000 (20:01 +0000)]
Added IPv6 name servers support
Gisle Vanem [Fri, 5 Mar 2010 18:45:17 +0000 (18:45 +0000)]
Ops!. Readded ares_nowarn.h.
Gisle Vanem [Fri, 5 Mar 2010 18:21:56 +0000 (18:21 +0000)]
Added ares_nowarn.c.
Yang Tse [Sun, 28 Feb 2010 02:51:35 +0000 (02:51 +0000)]
Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems
Yang Tse [Sun, 28 Feb 2010 02:50:51 +0000 (02:50 +0000)]
Added ares_nowarn.* to VC6 project file
Yang Tse [Fri, 26 Feb 2010 17:48:18 +0000 (17:48 +0000)]
Added SIZEOF_INT definition
Yang Tse [Fri, 26 Feb 2010 16:42:33 +0000 (16:42 +0000)]
fix compiler warning
Yang Tse [Tue, 23 Feb 2010 18:46:27 +0000 (18:46 +0000)]
fix compiler warning
Yang Tse [Sun, 21 Feb 2010 19:59:09 +0000 (19:59 +0000)]
fix compiler warning
Daniel Stenberg [Wed, 17 Feb 2010 22:15:23 +0000 (22:15 +0000)]
ares_reinit()
- To allow an app to force a re-read of /etc/resolv.conf etc, pretty much
like the res_init() resolver function offers
Daniel Stenberg [Thu, 28 Jan 2010 22:03:48 +0000 (22:03 +0000)]
- Tommie Gannert pointed out a silly bug in ares_process_fd() since it didn't
check for broken connections like ares_process() did. Based on that, I
merged the two functions into a single generic one with two front-ends.
Yang Tse [Wed, 30 Dec 2009 17:59:56 +0000 (17:59 +0000)]
VMS specific preprocessor symbol checking adjustments
Yang Tse [Tue, 29 Dec 2009 02:32:12 +0000 (02:32 +0000)]
Mention last changes
Yang Tse [Tue, 29 Dec 2009 02:04:17 +0000 (02:04 +0000)]
- Fix configure_socket() to use ares_socket_t instead of int data type.