Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/bootp/common Add missing breaks in switch statement...



details:   https://anonhg.NetBSD.org/src/rev/48a2b2512635
branches:  trunk
changeset: 760392:48a2b2512635
user:      wiz <wiz%NetBSD.org@localhost>
date:      Tue Jan 04 09:16:17 2011 +0000

description:
Add missing breaks in switch statement. Found by cppcheck.

diffstat:

 usr.sbin/bootp/common/readfile.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r e22b8cbf9e90 -r 48a2b2512635 usr.sbin/bootp/common/readfile.c
--- a/usr.sbin/bootp/common/readfile.c  Tue Jan 04 09:14:42 2011 +0000
+++ b/usr.sbin/bootp/common/readfile.c  Tue Jan 04 09:16:17 2011 +0000
@@ -22,7 +22,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: readfile.c,v 1.17 2009/04/15 00:23:29 lukem Exp $");
+__RCSID("$NetBSD: readfile.c,v 1.18 2011/01/04 09:16:17 wiz Exp $");
 #endif
 
 
@@ -681,8 +681,10 @@
                        break;
                case E_BAD_PATHNAME:
                        msg = "bad pathname (need leading '/')";
+                       break;
                case E_BAD_VALUE:
                        msg = "bad value";
+                       break;
                default:
                        msg = "unknown error";
                        break;



Home | Main Index | Thread Index | Old Index