Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ifwatchd Remove case labels we will never trigger d...
details: https://anonhg.NetBSD.org/src/rev/a72ce96b7e7d
branches: trunk
changeset: 321231:a72ce96b7e7d
user: roy <roy%NetBSD.org@localhost>
date: Wed Mar 07 10:06:41 2018 +0000
description:
Remove case labels we will never trigger due to filtering.
diffstat:
usr.sbin/ifwatchd/ifwatchd.c | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)
diffs (32 lines):
diff -r dc8106d0d2c0 -r a72ce96b7e7d usr.sbin/ifwatchd/ifwatchd.c
--- a/usr.sbin/ifwatchd/ifwatchd.c Wed Mar 07 09:44:22 2018 +0000
+++ b/usr.sbin/ifwatchd/ifwatchd.c Wed Mar 07 10:06:41 2018 +0000
@@ -1,6 +1,6 @@
-/* $NetBSD: ifwatchd.c,v 1.42 2017/04/11 14:21:35 roy Exp $ */
+/* $NetBSD: ifwatchd.c,v 1.43 2018/03/07 10:06:41 roy Exp $ */
#include <sys/cdefs.h>
-__RCSID("$NetBSD: ifwatchd.c,v 1.42 2017/04/11 14:21:35 roy Exp $");
+__RCSID("$NetBSD: ifwatchd.c,v 1.43 2018/03/07 10:06:41 roy Exp $");
/*-
* Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
@@ -267,18 +267,8 @@
case RTM_IFINFO:
check_carrier(msg);
break;
- case RTM_ADD:
- case RTM_DELETE:
- case RTM_CHANGE:
- case RTM_LOSING:
- case RTM_REDIRECT:
- case RTM_MISS:
- case RTM_IEEE80211:
- case RTM_ONEWADDR:
- case RTM_ODELADDR:
- case RTM_OCHGADDR:
- break;
default:
+ /* Should be impossible as we filter messages. */
if (verbose)
printf("unknown message ignored (%d)\n", hd->rtm_type);
break;
Home |
Main Index |
Thread Index |
Old Index