summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-07-10 23:16:38 +0300
committerRichard Lowe <richlowe@richlowe.net>2018-02-22 15:59:53 +0000
commitcf421650297f304644a9fe84c51540de5823fe84 (patch)
tree29a1dda223179ab288fe295d3010936a694fde10
parent38a641c5970af3d16902370fb738a6792620e1bf (diff)
downloadillumos-joyent-cf421650297f304644a9fe84c51540de5823fe84.tar.gz
9160 libtecla: this statement may fall through
Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r--usr/src/lib/libtecla/common/expand.c3
-rw-r--r--usr/src/lib/libtecla/common/getline.c3
-rw-r--r--usr/src/lib/libtecla/common/history.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/usr/src/lib/libtecla/common/expand.c b/usr/src/lib/libtecla/common/expand.c
index db00c7bfff..67991270d0 100644
--- a/usr/src/lib/libtecla/common/expand.c
+++ b/usr/src/lib/libtecla/common/expand.c
@@ -29,8 +29,6 @@
* of the copyright holder.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* If file-system access is to be excluded, this module has no function,
* so all of its code should be excluded.
@@ -887,6 +885,7 @@ static int ef_string_matches_pattern(const char *file, const char *pattern,
/*
* A normal character to be matched explicitly.
*/
+ /* FALLTHROUGH */
default:
if(*fptr == *pptr) {
fptr++;
diff --git a/usr/src/lib/libtecla/common/getline.c b/usr/src/lib/libtecla/common/getline.c
index b717784666..501c2841b6 100644
--- a/usr/src/lib/libtecla/common/getline.c
+++ b/usr/src/lib/libtecla/common/getline.c
@@ -35,8 +35,6 @@
* Copyright (c) 2016 by Delphix. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* Standard headers.
*/
@@ -6481,6 +6479,7 @@ static int _gl_parse_config_line(GetLine *gl, void *stream, GlcGetcFn *getc_fn,
switch(argc) {
case 3:
action = argv[2];
+ /* FALLTHROUGH */
case 2: /* Note the intentional fallthrough */
keyseq = argv[1];
/*
diff --git a/usr/src/lib/libtecla/common/history.c b/usr/src/lib/libtecla/common/history.c
index 377b802890..e1bbbaa8a9 100644
--- a/usr/src/lib/libtecla/common/history.c
+++ b/usr/src/lib/libtecla/common/history.c
@@ -34,8 +34,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -2722,6 +2720,7 @@ static int glh_line_matches_glob(GlhLineStream *lstr, GlhLineStream *pstr)
/*
* A normal character to be matched explicitly.
*/
+ /* FALLTHROUGH */
default:
if(lstr->c == pstr->c) {
glh_step_stream(lstr);