Module Name:    src
Committed By:   roy
Date:           Wed Mar  7 10:06:41 UTC 2018

Modified Files:
        src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
Remove case labels we will never trigger due to filtering.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/ifwatchd/ifwatchd.c
diff -u src/usr.sbin/ifwatchd/ifwatchd.c:1.42 src/usr.sbin/ifwatchd/ifwatchd.c:1.43
--- src/usr.sbin/ifwatchd/ifwatchd.c:1.42	Tue Apr 11 14:21:35 2017
+++ src/usr.sbin/ifwatchd/ifwatchd.c	Wed Mar  7 10:06:41 2018
@@ -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 @@ dispatch(const void *msg, size_t len)
 	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;

Reply via email to