From: guy Date: Sat, 12 Nov 2005 22:23:23 +0000 (+0000) Subject: Get rid of an #ifdef - to zero something out with memset, just use X-Git-Tag: tcpdump-3.9.6~55 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/35f08f219a74686028cdf9fe4c51ae770093fa26 Get rid of an #ifdef - to zero something out with memset, just use "sizeof something" as the size argument. --- diff --git a/print-isoclns.c b/print-isoclns.c index e4644345..a0f10cbe 100644 --- a/print-isoclns.c +++ b/print-isoclns.c @@ -26,7 +26,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.133.2.20 2005-10-16 08:18:18 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.133.2.21 2005-11-12 22:23:23 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -1662,11 +1662,7 @@ isis_print_extd_ip_reach (const u_int8_t *tptr, const char *ident, u_int16_t afi if (!TTEST2(*tptr, byte_length)) return (0); -#ifdef INET6 - memset(prefix, 0, sizeof(struct in6_addr)); /* clear the copy buffer */ -#else - memset(prefix, 0, sizeof(struct in_addr)); /* clear the copy buffer */ -#endif + memset(prefix, 0, sizeof prefix); /* clear the copy buffer */ memcpy(prefix,tptr,byte_length); /* copy as much as is stored in the TLV */ tptr+=byte_length; processed+=byte_length;