From 66a12302e12be6813c3e16e6c05e4a7871e78e6e Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 16 Mar 2005 20:15:08 +0000 Subject: [PATCH] silence ptr mismatch signed/unsigned. --- lib/isc/netaddr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/isc/netaddr.c b/lib/isc/netaddr.c index 55a2c60a90..c57ca4d38c 100644 --- a/lib/isc/netaddr.c +++ b/lib/isc/netaddr.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: netaddr.c,v 1.32 2005/02/23 01:06:37 marka Exp $ */ +/* $Id: netaddr.c,v 1.33 2005/03/16 20:15:08 marka Exp $ */ #include @@ -146,7 +146,9 @@ isc_netaddr_totext(const isc_netaddr_t *netaddr, isc_buffer_t *target) { alen = strlen(netaddr->type.un); if (alen > isc_buffer_availablelength(target)) return (ISC_R_NOSPACE); - isc_buffer_putmem(target, netaddr->type.un, alen); + isc_buffer_putmem(target, + (const unsigned char *)(netaddr->type.un), + alen); return (ISC_R_SUCCESS); #endif default: