[hackers] [sbase] style: document intentional fallthrough || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Mon, 9 Mar 2015 00:41:21 +0100 (CET)

commit b2e8e542d01eaef02a1c028659dfb2271b1be918
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Mon Mar 9 00:33:13 2015 +0100

    style: document intentional fallthrough

diff --git a/cal.c b/cal.c
index b630221..e5f7b56 100644
--- a/cal.c
+++ b/cal.c
_AT_@ -197,7 +197,7 @@ main(int argc, char *argv[])
         case 2:
                 month = estrtonum(argv[0], 1, 12);
                 argv++;
- case 1:
+ case 1: /* fallthrough */
                 year = estrtonum(argv[0], 0, INT_MAX);
                 break;
         case 0:
diff --git a/readlink.c b/readlink.c
index e785fff..e19b6c9 100644
--- a/readlink.c
+++ b/readlink.c
_AT_@ -83,7 +83,7 @@ mdone:
         case 'e':
                 if (stat(argv[0], &st) < 0)
                         eprintf("stat %s:", argv[0]);
- case 'f':
+ case 'f': /* fallthrough */
                 if (!realpath(argv[0], b))
                         eprintf("realpath %s:", argv[0]);
                 break;
Received on Mon Mar 09 2015 - 00:41:21 CET

This archive was generated by hypermail 2.3.0 : Mon Mar 09 2015 - 00:48:15 CET