summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2015-12-31 18:36:34 +0100
committerMatt Johnston <matt@ucc.asn.au>2016-03-16 22:41:19 +0800
commit1dba0d4830786ba17966a8d1397f07557e95bfd5 (patch)
tree7cf0491bdccd20164e1e3339048e264c7084bf57
parentda85400e57f2d1af6506fcd263941cd9a1ae3163 (diff)
add comment FALLTHROUGH which recognize by many lint tools
-rw-r--r--atomicio.c1
-rw-r--r--cli-runopts.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/atomicio.c b/atomicio.c
index 1915a7b..a061cbd 100644
--- a/atomicio.c
+++ b/atomicio.c
@@ -53,6 +53,7 @@ atomicio(f, fd, _s, n)
if (errno == EINTR || errno == EAGAIN)
#endif
continue;
+ /* FALLTHROUGH */
case 0:
return (res);
default:
diff --git a/cli-runopts.c b/cli-runopts.c
index 8d1edee..7c3a50c 100644
--- a/cli-runopts.c
+++ b/cli-runopts.c
@@ -315,6 +315,7 @@ void cli_getopts(int argc, char ** argv) {
break;
case 'b':
next = &dummy;
+ /* FALLTHROUGH */
default:
fprintf(stderr,
"WARNING: Ignoring unknown option -%c\n", c);