Yang Tse
8c503ddf79
System's errno.h inclusion cleanup.
...
System's errno.h is conditionally included from setup_once.h
14 years ago
Yang Tse
3670427a0b
ares_inet_ntop: remove definition and usage of macro SPRINTF
...
Existing definition of SPRINTF always resulted in sprintf() being used,
and sprintf() returning 'int' is already used throughout the library.
14 years ago
Yang Tse
52f493c931
ares_inet_ntop: reapply changes from previous c-ares version (III)
...
- Replace 'u_char' with 'unsigned char'.
- Replace 'u_int' with 'unsigned int'.
- use macros ERRNO and SET_ERRNO() for errno handling.
14 years ago
Yang Tse
2c9bdd7856
ares_inet_ntop: reapply changes from previous c-ares version (II)
...
- Remove rcsid.
- Adjust header file inclusions.
- ares_inet_ntop used only on systems without a proper inet_ntop function.
14 years ago
Yang Tse
fd6f4dbe1e
ares_inet_ntop: reapply changes from previous c-ares version (I)
...
- Replace tabs with spaces.
- Use ANSI C style for function declarations and definitions.
- Use sizeof with parentheses.
14 years ago
Yang Tse
0d738bab0d
ares_inet_ntop: fix off by one error triggering out of bounds write
...
ares_inet_ntop would trigger an out of bounds write when the representation
of the address required 15 characters, due to not taking in account null
termination character.
Full import of inet_ntop.c from bind-9.5.3rc1 to pull additional fixes.
14 years ago
Daniel Stenberg
63627fa5ab
remove all $Id$ lines
15 years ago
Yang Tse
8fe746fcf2
Added IPv6 name servers support
15 years ago
Yang Tse
a82a8fbf82
Renamed c-ares setup.h to ares_setup.h
15 years ago
Yang Tse
a08ee8a0be
HAVE_INET_NTOP will only be defined when an IPv6 capable working
...
inet_ntop function is available.
16 years ago
Yang Tse
f214b583f5
adjust inclusion of "nameser.h"
16 years ago
Gisle Vanem
a627160041
Removed inclusion of <sys/types.h> in .c-files
...
since it's already included through "setup.h".
18 years ago
Yang Tse
69fa447354
use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handling
18 years ago
Yang Tse
fc71973aa6
Minor compatibility fix
19 years ago
Yang Tse
857a5f9353
Fix compiler warning
19 years ago
Gisle Vanem
fbb01a0ebe
Added CVS id, Detabified, applied c-ares coding-style.
19 years ago
Gisle Vanem
9c99a58191
Squelch gcc 4.x warning.
19 years ago
Dominick Meglio
a6f7820033
Converted some macros to use NS_* so they work on non-IPv6 systems
20 years ago
Dominick Meglio
8260cc50de
Forgot to ares_-ize inet_ntop
20 years ago
Dominick Meglio
eeb6aa6b01
Added an inet_ntop function from BIND for systems that do not have it
20 years ago