style: document intentional fallthrough
This commit is contained in:
parent
aa1a2391ba
commit
8f436abde6
2
cal.c
2
cal.c
@ -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:
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user