style: document intentional fallthrough

This commit is contained in:
Hiltjo Posthuma 2015-03-09 00:33:13 +01:00
parent aa1a2391ba
commit 8f436abde6
2 changed files with 2 additions and 2 deletions

2
cal.c
View File

@ -197,7 +197,7 @@ main(int argc, char *argv[])
case 2: case 2:
month = estrtonum(argv[0], 1, 12); month = estrtonum(argv[0], 1, 12);
argv++; argv++;
case 1: case 1: /* fallthrough */
year = estrtonum(argv[0], 0, INT_MAX); year = estrtonum(argv[0], 0, INT_MAX);
break; break;
case 0: case 0:

View File

@ -83,7 +83,7 @@ mdone:
case 'e': case 'e':
if (stat(argv[0], &st) < 0) if (stat(argv[0], &st) < 0)
eprintf("stat %s:", argv[0]); eprintf("stat %s:", argv[0]);
case 'f': case 'f': /* fallthrough */
if (!realpath(argv[0], b)) if (!realpath(argv[0], b))
eprintf("realpath %s:", argv[0]); eprintf("realpath %s:", argv[0]);
break; break;