diff options
Diffstat (limited to 'epan/addr_resolv.c')
-rw-r--r-- | epan/addr_resolv.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/addr_resolv.c b/epan/addr_resolv.c index f12eda1080..8c1544aced 100644 --- a/epan/addr_resolv.c +++ b/epan/addr_resolv.c @@ -63,6 +63,14 @@ * sites still using NIS rather than DNS for that....) */ +#ifdef HAVE_GNU_ADNS +# include <errno.h> +# include <adns.h> +# ifdef inet_aton +# undef inet_aton +# endif +#endif + #ifdef HAVE_UNISTD_H #include <unistd.h> #endif @@ -101,14 +109,6 @@ # include "inet_v6defs.h" #endif -#ifdef HAVE_GNU_ADNS -# include <errno.h> -# include <adns.h> -# ifdef inet_aton -# undef inet_aton -# endif -#endif - #if defined(_WIN32) && defined(INET6) # include <ws2tcpip.h> #endif @@ -553,7 +553,7 @@ static const gchar *solve_address_to_name(address *addr) return get_hostname6(&ipv6_addr); case AT_STRINGZ: - return addr->data; + return (gchar*)addr->data; default: return NULL; |