summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-07-16 09:32:36 +0300
committerGordon Ross <gwr@nexenta.com>2018-03-25 14:16:18 -0400
commitc2b69dec36507b9e29407d1fcc61adc12e08492b (patch)
treea72dfb3a32d729465623072fbc94f4328df4ba0c
parentb2cf51950f94dd7f59fa3a283f96a19a31858b25 (diff)
downloadillumos-joyent-c2b69dec36507b9e29407d1fcc61adc12e08492b.tar.gz
9304 ftp: this statement may fall through
Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net> Reviewed by: C Fraire <cfraire@me.com> Approved by: Gordon Ross <gwr@nexenta.com>
-rw-r--r--usr/src/cmd/cmd-inet/usr.bin/ftp/cmds.c7
-rw-r--r--usr/src/cmd/cmd-inet/usr.bin/ftp/domacro.c4
2 files changed, 3 insertions, 8 deletions
diff --git a/usr/src/cmd/cmd-inet/usr.bin/ftp/cmds.c b/usr/src/cmd/cmd-inet/usr.bin/ftp/cmds.c
index 4be0e5d371..1b2fc48680 100644
--- a/usr/src/cmd/cmd-inet/usr.bin/ftp/cmds.c
+++ b/usr/src/cmd/cmd-inet/usr.bin/ftp/cmds.c
@@ -36,9 +36,6 @@
* contributors.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-
/*
* FTP User Program -- Command Routines.
*/
@@ -1941,7 +1938,7 @@ domap(char *name)
cp2 += len2; /* Consume wide char */
break;
}
- /* intentional drop through */
+ /* FALLTHROUGH */
default:
if (wc2 != wc1)
match = 0;
@@ -2074,7 +2071,7 @@ LOOP:
cp2++;
break;
}
- /* intentional drop through */
+ /* FALLTHROUGH */
default:
if ((len2 = mblen(cp2, MB_CUR_MAX)) <= 0)
len2 = 1;
diff --git a/usr/src/cmd/cmd-inet/usr.bin/ftp/domacro.c b/usr/src/cmd/cmd-inet/usr.bin/ftp/domacro.c
index 2d8421bbb3..e4a0d6a4c3 100644
--- a/usr/src/cmd/cmd-inet/usr.bin/ftp/domacro.c
+++ b/usr/src/cmd/cmd-inet/usr.bin/ftp/domacro.c
@@ -37,8 +37,6 @@
* contributors.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <libintl.h>
#include <stdlib.h>
@@ -123,7 +121,7 @@ TOP:
}
break;
}
- /* intentional drop through */
+ /* FALLTHROUGH */
default:
if ((len = mblen(cp1, MB_CUR_MAX)) <= 0)
len = 1;