summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2002-08-25 13:01:47 +0000
committercharnier <charnier@FreeBSD.org>2002-08-25 13:01:47 +0000
commitc88222c6c0149f22317404fa4c67eba023d90206 (patch)
tree956af2bc985558970e580524f3f7b43cb8eea5c3 /bin
parentc7378f848bc6b0fb2ba56c417a252bf169c9c908 (diff)
downloadFreeBSD-src-c88222c6c0149f22317404fa4c67eba023d90206.zip
FreeBSD-src-c88222c6c0149f22317404fa4c67eba023d90206.tar.gz
Replace various spellings with FALLTHROUGH which is lint()able
Diffstat (limited to 'bin')
-rw-r--r--bin/ed/main.c4
-rw-r--r--bin/ls/ls.c20
-rw-r--r--bin/sh/expand.c2
-rw-r--r--bin/sh/parser.c2
4 files changed, 14 insertions, 14 deletions
diff --git a/bin/ed/main.c b/bin/ed/main.c
index 349dbbf..2cebaf8 100644
--- a/bin/ed/main.c
+++ b/bin/ed/main.c
@@ -355,7 +355,7 @@ next_addr(void)
addr = addr_last;
break;
}
- /* FALL THROUGH */
+ /* FALLTHROUGH */
default:
if (ibufp == hd)
return EOF;
@@ -489,7 +489,7 @@ exec_command(void)
case 'e':
if (modified && !scripted)
return EMOD;
- /* fall through */
+ /* FALLTHROUGH */
case 'E':
if (addr_cnt > 0) {
errmsg = "unexpected address";
diff --git a/bin/ls/ls.c b/bin/ls/ls.c
index 5884ee4..71158de 100644
--- a/bin/ls/ls.c
+++ b/bin/ls/ls.c
@@ -565,36 +565,36 @@ display(FTSENT *p, FTSENT *list)
switch (ninitmax) {
case 0:
maxinode = 0;
- /* fall through */
+ /* FALLTHROUGH */
case 1:
maxblock = 0;
- /* fall through */
+ /* FALLTHROUGH */
case 2:
maxnlink = 0;
- /* fall through */
+ /* FALLTHROUGH */
case 3:
maxuser = 0;
- /* fall through */
+ /* FALLTHROUGH */
case 4:
maxgroup = 0;
- /* fall through */
+ /* FALLTHROUGH */
case 5:
maxflags = 0;
- /* fall through */
+ /* FALLTHROUGH */
case 6:
maxsize = 0;
- /* fall through */
+ /* FALLTHROUGH */
case 7:
maxlen = 0;
- /* fall through */
+ /* FALLTHROUGH */
case 8:
maxlattr = 0;
- /* fall through */
+ /* FALLTHROUGH */
#ifdef COLORLS
if (!f_color)
#endif
f_notabs = 0;
- /* fall through */
+ /* FALLTHROUGH */
default:
break;
}
diff --git a/bin/sh/expand.c b/bin/sh/expand.c
index eaab1bd..a8cad11 100644
--- a/bin/sh/expand.c
+++ b/bin/sh/expand.c
@@ -893,7 +893,7 @@ numvar:
}
break;
}
- /* fall through */
+ /* FALLTHROUGH */
case '*':
if (ifsset() != 0)
sep = ifsval()[0];
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index e87047f..5da28ad 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -193,7 +193,7 @@ list(int nlflag)
case TBACKGND:
case TSEMI:
tok = readtoken();
- /* fall through */
+ /* FALLTHROUGH */
case TNL:
if (tok == TNL) {
parseheredoc();
OpenPOWER on IntegriCloud