Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/route Fix macro NEXTADDR so that the names, like so_dst...



details:   https://anonhg.NetBSD.org/src/rev/9a18f0c4a6e6
branches:  trunk
changeset: 580831:9a18f0c4a6e6
user:      ginsbach <ginsbach%NetBSD.org@localhost>
date:      Tue May 10 18:12:22 2005 +0000

description:
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.

diffstat:

 sbin/route/route.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5f55c66a4b92 -r 9a18f0c4a6e6 sbin/route/route.c
--- a/sbin/route/route.c        Tue May 10 17:47:33 2005 +0000
+++ b/sbin/route/route.c        Tue May 10 18:12:22 2005 +0000
@@ -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 @@
 #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 @@
 #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;



Home | Main Index | Thread Index | Old Index