summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-07-16 10:17:45 +0300
committerHans Rosenfeld <hans.rosenfeld@joyent.com>2018-04-23 18:15:39 +0200
commit96d32a53e61e5d703ab14d07d81e4e81c8c9fbb9 (patch)
tree2015dac14b8c73fc45fef95401d2bd0a76493d59
parent95e72cea9fdb1b95dc17d852d8fc25b518112352 (diff)
downloadillumos-joyent-96d32a53e61e5d703ab14d07d81e4e81c8c9fbb9.tar.gz
9392 idmap: this statement may fall through
Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
-rw-r--r--usr/src/cmd/idmap/idmap/idmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/cmd/idmap/idmap/idmap.c b/usr/src/cmd/idmap/idmap/idmap.c
index 3be65fd6d9..64644f4aae 100644
--- a/usr/src/cmd/idmap/idmap/idmap.c
+++ b/usr/src/cmd/idmap/idmap/idmap.c
@@ -1204,7 +1204,7 @@ print_mapping(print_handle_t *pnm, name_mapping_t *nm)
free(winname);
return (-1);
}
- /* LINTED E_CASE_FALLTHRU */
+ /* FALLTHROUGH */
case MAPPING_ID:
if (pnm->format == MAPPING_ID) {
if (nm->sidprefix == NULL) {
@@ -2339,7 +2339,8 @@ print_flags(flag_t *f)
/* Convert string like sid or winname to the identity type code */
static int
-string2type(char *str, cmd_pos_t *pos) {
+string2type(char *str, cmd_pos_t *pos)
+{
int i;
int code = TYPE_INVALID;