summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-07-16 09:53:55 +0300
committerGordon Ross <gwr@nexenta.com>2018-04-01 17:48:01 -0400
commitc15ff06a5cef5880e0afc02c7a87c6b22455f848 (patch)
treed076a9f0ec03ae4edb996d480b85e0c6a7ef39f1
parentf6b0cb17c5dc44ae872c22ebbbd2663c98723311 (diff)
downloadillumos-joyent-c15ff06a5cef5880e0afc02c7a87c6b22455f848.tar.gz
9307 rdist: this statement may fall through
Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Gordon Ross <gwr@nexenta.com>
-rw-r--r--usr/src/cmd/cmd-inet/usr.bin/rdist/gram.y2
-rw-r--r--usr/src/cmd/cmd-inet/usr.bin/rdist/server.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/cmd/cmd-inet/usr.bin/rdist/gram.y b/usr/src/cmd/cmd-inet/usr.bin/rdist/gram.y
index 552c9d0813..160e9fd802 100644
--- a/usr/src/cmd/cmd-inet/usr.bin/rdist/gram.y
+++ b/usr/src/cmd/cmd-inet/usr.bin/rdist/gram.y
@@ -15,7 +15,6 @@
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
#include "defs.h"
@@ -205,6 +204,7 @@ again:
;
if (c == EOF)
return(0);
+ /* FALLTHROUGH */
case '\n':
yylineno++;
case ' ':
diff --git a/usr/src/cmd/cmd-inet/usr.bin/rdist/server.c b/usr/src/cmd/cmd-inet/usr.bin/rdist/server.c
index 88fac286eb..dd319ed40a 100644
--- a/usr/src/cmd/cmd-inet/usr.bin/rdist/server.c
+++ b/usr/src/cmd/cmd-inet/usr.bin/rdist/server.c
@@ -218,6 +218,7 @@ server()
default:
error("server: unknown command '%s'\n", cp);
+ continue;
case '\0':
continue;
}
@@ -1619,7 +1620,7 @@ more:
default:
s--;
- /* fall into... */
+ /* FALLTHROUGH */
case '\1':
case '\2':
nerrs++;