Source-Changes-HG archive

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

[src/trunk]: src/sbin/route Fix route and netstat -r output when built with -...



details:   https://anonhg.NetBSD.org/src/rev/4abc61e82995
branches:  trunk
changeset: 355106:4abc61e82995
user:      manu <manu%NetBSD.org@localhost>
date:      Thu Jul 13 08:26:29 2017 +0000

description:
Fix route and netstat -r output when built with -DSMALL

A missing \n caused the routing table to be printed all in one line
if -DSMALL was used.

diffstat:

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

diffs (18 lines):

diff -r 4e7de9040601 -r 4abc61e82995 sbin/route/rtutil.c
--- a/sbin/route/rtutil.c       Thu Jul 13 08:22:20 2017 +0000
+++ b/sbin/route/rtutil.c       Thu Jul 13 08:26:29 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtutil.c,v 1.9 2017/06/28 04:14:53 ozaki-r Exp $       */
+/*     $NetBSD: rtutil.c,v 1.10 2017/07/13 08:26:29 manu Exp $ */
 /*     $OpenBSD: show.c,v 1.1 2006/05/27 19:16:37 claudio Exp $        */
 
 /*
@@ -304,6 +304,8 @@
        putchar('\n');
        if (flags & RT_VFLAG)
                p_rtrmx(&rtm->rtm_rmx);
+#else
+       putchar('\n');
 #endif
 }
 



Home | Main Index | Thread Index | Old Index