From a43fb90cb0d6466572f7ea48656c504f3776f669 Mon Sep 17 00:00:00 2001 From: ginsbach Date: Tue, 10 May 2005 18:12:22 +0000 Subject: [PATCH] Fix macro NEXTADDR so that the names, like so_dst, are printed rather than u. The preprocessor doesn't do replacement within strings, so the # string creation operator must be used. --- sbin/route/route.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/route/route.c b/sbin/route/route.c index 4808ee84eaf8..d9517130b809 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $NetBSD: route.c,v 1.75 2005/02/05 14:05:23 xtraeme Exp $ */ +/* $NetBSD: route.c,v 1.76 2005/05/10 18:12:22 ginsbach Exp $ */ /* * Copyright (c) 1983, 1989, 1991, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1989, 1991, 1993\n\ #if 0 static char sccsid[] = "@(#)route.c 8.6 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: route.c,v 1.75 2005/02/05 14:05:23 xtraeme Exp $"); +__RCSID("$NetBSD: route.c,v 1.76 2005/05/10 18:12:22 ginsbach Exp $"); #endif #endif /* not lint */ @@ -1503,7 +1503,7 @@ rtmsg(int cmd, int flags) #define NEXTADDR(w, u) \ if (rtm_addrs & (w)) {\ l = ROUNDUP(u.sa.sa_len); memmove(cp, &(u), l); cp += l;\ - if (verbose && ! shortoutput) sodump(&(u),"u");\ + if (verbose && ! shortoutput) sodump(&(u),#u);\ } errno = 0;