From: fenner Date: Fri, 27 Apr 2001 02:17:10 +0000 (+0000) Subject: Don't bother using a variable to store a constant format string X-Git-Tag: tcpdump-3.7.1~238 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/c153f2e6eff6b03cecc918e6b8ae59082a1db0d1 Don't bother using a variable to store a constant format string in cmu_print() --- diff --git a/print-bootp.c b/print-bootp.c index 9a7d5b20..2c823f4e 100644 --- a/print-bootp.c +++ b/print-bootp.c @@ -22,7 +22,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-bootp.c,v 1.57 2001-02-21 05:59:37 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-bootp.c,v 1.58 2001-04-27 02:17:10 fenner Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -522,11 +522,10 @@ static void cmu_print(register const u_char *bp, register u_int length) { register const struct cmu_vend *cmu; - const char *fmt = " %s:%s"; #define PRINTCMUADDR(m, s) { TCHECK(cmu->m); \ if (cmu->m.s_addr != 0) \ - printf(fmt, s, ipaddr_string(&cmu->m.s_addr)); } + printf(" %s:%s", s, ipaddr_string(&cmu->m.s_addr)); } printf(" vend-cmu"); cmu = (struct cmu_vend *)bp;