Source-Changes-HG archive

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

[src/trunk]: src/sbin/route route(8): Show addres for RTM_LOSING



details:   https://anonhg.NetBSD.org/src/rev/3eeb427866e8
branches:  trunk
changeset: 459286:3eeb427866e8
user:      roy <roy%NetBSD.org@localhost>
date:      Mon Sep 02 00:30:01 2019 +0000

description:
route(8): Show addres for RTM_LOSING

While here, add /* FALLTHROUGH */.

diffstat:

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

diffs (34 lines):

diff -r 9ccfb48751b4 -r 3eeb427866e8 sbin/route/route.c
--- a/sbin/route/route.c        Mon Sep 02 00:25:47 2019 +0000
+++ b/sbin/route/route.c        Mon Sep 02 00:30:01 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.c,v 1.162 2019/08/31 18:20:08 roy Exp $  */
+/*     $NetBSD: route.c,v 1.163 2019/09/02 00:30:01 roy 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.162 2019/08/31 18:20:08 roy Exp $");
+__RCSID("$NetBSD: route.c,v 1.163 2019/09/02 00:30:01 roy Exp $");
 #endif
 #endif /* not lint */
 
@@ -1459,10 +1459,11 @@
                }
                printf("\n");
                break;
-       case RTM_ADD:
-       case RTM_CHANGE:
-       case RTM_DELETE:
-       case RTM_GET:
+       case RTM_ADD:           /* FALLTHROUGH */
+       case RTM_CHANGE:        /* FALLTHROUGH */
+       case RTM_DELETE:        /* FALLTHROUGH */
+       case RTM_GET:           /* FALLTHROUGH */
+       case RTM_LOSING:        /* FALLTHROUGH */
        case RTM_MISS:
                (void)printf("pid %d, seq %d, errno %d, flags: ",
                        rtm->rtm_pid, rtm->rtm_seq, rtm->rtm_errno);



Home | Main Index | Thread Index | Old Index