diff options
| author | mrg <mrg@NetBSD.org> | 2019-02-03 03:19:25 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2019-02-03 03:19:25 +0000 |
| commit | 788768547b3857c4a91dd4dfdf8fc4ffe855cddc (patch) | |
| tree | 05c0bb3274b13ebb5db25e521a19b68688a65067 /usr.sbin/mrouted | |
| parent | 347959000863b79ceb826308162ed125f4a420ac (diff) | |
- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily
Diffstat (limited to 'usr.sbin/mrouted')
| -rw-r--r-- | usr.sbin/mrouted/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/mrouted/main.c b/usr.sbin/mrouted/main.c index b2461346e36..e58ef175d9e 100644 --- a/usr.sbin/mrouted/main.c +++ b/usr.sbin/mrouted/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.25 2011/08/31 16:24:59 plunky Exp $ */ +/* $NetBSD: main.c,v 1.26 2019/02/03 03:19:31 mrg Exp $ */ /* * The mrouted program is covered by the license in the accompanying file @@ -29,7 +29,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("@(#) $NetBSD: main.c,v 1.25 2011/08/31 16:24:59 plunky Exp $"); +__RCSID("@(#) $NetBSD: main.c,v 1.26 2019/02/03 03:19:31 mrg Exp $"); #endif #include <ctype.h> @@ -643,7 +643,9 @@ logit(int severity, int syserr, const char *format, ...) switch (debug) { case 0: break; case 1: if (severity > LOG_NOTICE) break; + /* FALLTHROUGH */ case 2: if (severity > LOG_INFO ) break; + /* FALLTHROUGH */ default: gettimeofday(&now,NULL); t = now.tv_sec; |
