=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/dig/dighost.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/dig/dighost.c 2020/02/11 16:47:42 1.2 +++ src/usr.bin/dig/dighost.c 2020/02/11 18:47:29 1.3 @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dighost.c,v 1.2 2020/02/11 16:47:42 florian Exp $ */ +/* $Id: dighost.c,v 1.3 2020/02/11 18:47:29 florian Exp $ */ /*! \file * \note @@ -75,14 +75,6 @@ #include "dig.h" -#if ! defined(NS_INADDRSZ) -#define NS_INADDRSZ 4 -#endif - -#if ! defined(NS_IN6ADDRSZ) -#define NS_IN6ADDRSZ 16 -#endif - static lwres_conf_t lwconfdata; static lwres_conf_t *lwconf = &lwconfdata; @@ -569,11 +561,11 @@ switch (af) { case AF_INET: confdata->nameservers[i].family = LWRES_ADDRTYPE_V4; - confdata->nameservers[i].length = NS_INADDRSZ; + confdata->nameservers[i].length = sizeof(struct in_addr); break; case AF_INET6: confdata->nameservers[i].family = LWRES_ADDRTYPE_V6; - confdata->nameservers[i].length = NS_IN6ADDRSZ; + confdata->nameservers[i].length = sizeof(struct in6_addr); break; default: return (ISC_R_FAILURE);