Replace various spellings with FALLTHROUGH which is lint()able
This commit is contained in:
parent
ec1c4337c5
commit
eafd430bd4
@ -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";
|
||||
|
20
bin/ls/ls.c
20
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;
|
||||
}
|
||||
|
@ -893,7 +893,7 @@ varvalue(char *name, int quoted, int allow_split)
|
||||
}
|
||||
break;
|
||||
}
|
||||
/* fall through */
|
||||
/* FALLTHROUGH */
|
||||
case '*':
|
||||
if (ifsset() != 0)
|
||||
sep = ifsval()[0];
|
||||
|
@ -193,7 +193,7 @@ list(int nlflag)
|
||||
case TBACKGND:
|
||||
case TSEMI:
|
||||
tok = readtoken();
|
||||
/* fall through */
|
||||
/* FALLTHROUGH */
|
||||
case TNL:
|
||||
if (tok == TNL) {
|
||||
parseheredoc();
|
||||
|
Loading…
Reference in New Issue
Block a user