ui_menu_goto(cf, (int) m->idx - m->page_sz);
return 0;
}
- /* fallthrough */
+ FALLTHROUGH;
case KEY_HOME:
ui_menu_goto(cf, 0);
return 0;
ui_menu_goto(cf, m->idx + m->page_sz);
return 0;
}
- /* fallthrough */
+ FALLTHROUGH;
case KEY_END:
ui_menu_goto(cf, m->nitems);
return 0;
ui_table_goto(cf, (int) cf->lines_idx - cf->page_sz);
break;
}
- /* fallthrough */
+ FALLTHROUGH;
case KEY_HOME:
ui_table_goto(cf, 0);
break;
ui_table_goto(cf, cf->lines_idx + cf->page_sz);
break;
}
- /* fallthrough */
+ FALLTHROUGH;
case KEY_END:
ui_table_goto(cf, (int) cf->nlines - 1);
break;
rc = fdisk_reread_partition_table(cxt);
if (!rc)
rc = fdisk_deassign_device(cxt, 0);
- /* fallthrough */
+ FALLTHROUGH;
case 'q':
fdisk_unref_context(cxt);
fputc('\n', stdout);
break;
case 'v': /* kept for backwards compatibility */
warnx(_("-v is ambiguous, use '-2' instead"));
- /* fallthrough */
+ FALLTHROUGH;
case '2':
fs_version = 2;
break;
break;
}
}
- /* fallthrough */
+ FALLTHROUGH;
case SFDISK_DONE_WRITE:
rc = write_changes(sf);
break;
break;
case 'J':
sf->json = 1;
- /* fallthrough */
+ FALLTHROUGH;
case 'd':
sf->act = ACT_DUMP;
break;
break;
case 'G':
warnx(_("--show-pt-geometry is no more implemented. Using --show-geometry."));
- /* fallthrough */
+ FALLTHROUGH;
case 'g':
sf->act = ACT_SHOW_GEOM;
break;
}
break;
case SIGHUP:
- /* fallthrough */
+ FALLTHROUGH;
case SIGTERM:
- /* fallthrough */
+ FALLTHROUGH;
case SIGINT:
- /* fallthrough */
+ FALLTHROUGH;
case SIGQUIT:
DBG(SIG, ul_debugobj(pty, " get signal SIG{TERM,INT,QUIT}"));
pty->delivered_signal = info.ssi_signo;
switch (md.level) {
case 6:
md.raid_disks--;
- /* fallthrough */
+ FALLTHROUGH;
case 5:
case 4:
md.raid_disks--;
- /* fallthrough */
+ FALLTHROUGH;
case 1:
case 0:
case 10:
snprintf(buf, bufsz, _("cannot mount; probably corrupted filesystem on %s"), src);
break;
}
- /* fallthrough */
+ FALLTHROUGH;
default:
generic_error:
/* reduce extreme columns with large width deviation */
if (st->width_deviation < st->width_avg / 2.0)
break;
- /* fallthrough */
+ FALLTHROUGH;
case 2:
/* reduce extreme columns */
if (!scols_column_is_noextremes(cl))
/* reduce columns with trunc flag and relative whint and large width deviation */
if (st->width_deviation < st->width_avg / 2.0)
break;
- /* fallthrough */
+ FALLTHROUGH;
case 4:
/* reduce columns with trunc flag and relative whint */
if (!is_trunc)
/* reduce all columns with trunc flag large width deviation */
if (st->width_deviation < st->width_avg / 2.2)
break;
- /* fallthrough */
+ FALLTHROUGH;
case 6:
/* reduce all columns with trunc flag */
if (!is_trunc && !scols_column_is_noextremes(cl))
case SCOLS_FMT_JSON:
ul_jsonwrt_init(&tb->json, tb->out, 0);
extra_bufsz += tb->nlines * 3; /* indentation */
- /* fallthrough */
+ FALLTHROUGH;
case SCOLS_FMT_EXPORT:
{
struct libscols_column *cl;
c = whydown;
quit = list(ctl, &ut, lastboot, c);
}
- /* fallthrough */
+ FALLTHROUGH;
case DEAD_PROCESS:
/*
break;
case OUT_NEWLINE:
scols_table_set_column_separator(table, "\n");
- /* fallthrough */
+ FALLTHROUGH;
case OUT_EXPORT:
scols_table_enable_export(table, 1);
break;
case OUT_NUL:
scols_table_set_line_separator(table, "\0");
- /* fallthrough */
+ FALLTHROUGH;
case OUT_RAW:
scols_table_enable_raw(table, 1);
break;
errx(EXIT_FAILURE, _("no command was specified"));
break;
}
- /* fallthrough */
+ FALLTHROUGH;
case SU_MODE:
if (optind < argc)
su->new_user = argv[optind++];
break;
case 1: /* odd parity */
tio->c_cflag |= PARODD;
- /* fallthrough */
+ FALLTHROUGH;
case 2: /* even parity */
tio->c_cflag |= PARENB;
tio->c_iflag |= (INPCK | ISTRIP);
- /* fallthrough */
+ FALLTHROUGH;
case (1 | 2): /* no parity bit */
tio->c_cflag &= ~CSIZE;
tio->c_cflag |= CS7;
switch (errno) {
case EIO:
con->flags |= CON_EIO;
- /* fallthrough */
+ FALLTHROUGH;
default:
warn(_("cannot read %s"), con->tty);
break;
exit(0);
case -1:
warn(_("fork failed"));
- /* fallthrough */
+ FALLTHROUGH;
default:
break;
}
minor(file->stat.st_rdev));
break;
}
- /* FALL THROUGH */
+ FALLTHROUGH;
case COL_MAJMIN:
xasprintf(&str, "%u:%u",
major(file->stat.st_rdev),
minor(file->stat.st_rdev));
return true;
}
- /* FALL THROUGH */
+ FALLTHROUGH;
case COL_MAJMIN:
xasprintf(str, "%u:%u",
major(file->stat.st_rdev),
case COL_FD:
if (!is_opened_file(file))
return false;
- /* FALL THROUGH */
+ FALLTHROUGH;
case COL_ASSOC:
if (is_opened_file(file))
xasprintf(&str, "%d", file->association);
return true;
}
}
- /* FALL THROUGH */
+ FALLTHROUGH;
case COL_KNAME:
if (file->name
&& scols_line_set_data(ln, column_index, file->name))
n = class->get_addr(l4, L4_LOCAL); \
has_laddr = true; \
p = tcp->local_port; \
- /* FALL THROUGH */ \
+ FALLTHROUGH; \
case COL_##L4##_RADDR: \
if (!has_laddr) { \
n = class->get_addr(l4, L4_REMOTE); \
case COL_##L4##_LPORT: \
p = tcp->local_port; \
has_lport = true; \
- /* FALL THROUGH */ \
+ FALLTHROUGH; \
case COL_##L4##_RPORT: \
if (!has_lport) \
p = tcp->remote_port; \
case COL_TYPE:
if (!sock->protoname)
return false;
- /* FALL THROUGH */
+ FALLTHROUGH;
case COL_SOCK_PROTONAME:
if (sock->protoname)
if (scols_line_set_data(ln, column_index, sock->protoname))
case COL_TYPE:
if (!unkn->anon_ops)
return false;
- /* FALL THROUGH */
+ FALLTHROUGH;
case COL_AINODECLASS:
if (unkn->anon_ops) {
str = anon_get_class(unkn);
ctl.req.day = strtos32_or_err(*argv++, _("illegal day value"));
if (ctl.req.day < 1 || DAYS_IN_MONTH < ctl.req.day)
errx(EXIT_FAILURE, _("illegal day value: use 1-%d"), DAYS_IN_MONTH);
- /* fallthrough */
+ FALLTHROUGH;
case 2:
if (isdigit(**argv))
ctl.req.month = strtos32_or_err(*argv++, _("illegal month value: use 1-12"));
}
if (ctl.req.month < 1 || MONTHS_IN_YEAR < ctl.req.month)
errx(EXIT_FAILURE, _("illegal month value: use 1-12"));
- /* fallthrough */
+ FALLTHROUGH;
case 1:
ctl.req.year = strtos32_or_err(*argv++, _("illegal year value"));
if (ctl.req.year < SMALLEST_YEAR)
case COL_RES:
if (!ctl.bytes)
break;
- /* fallthrough */
+ FALLTHROUGH;
default:
scols_column_set_json_type(cl, SCOLS_JSON_NUMBER);
break;
if (str)
break;
- /* fallthrough */
+ FALLTHROUGH;
case COL_SOURCE:
{
const char *root = mnt_fs_get_root(fs);
*multi = 1;
if (!(findmnt_flags & FL_BYTES))
break;
- /* fallthrough */
+ FALLTHROUGH;
case COL_ID:
case COL_UNIQ_ID:
case COL_PARENT:
break;
case 'M':
findmnt.flags |= FL_STRICTTARGET;
- /* fallthrough */
+ FALLTHROUGH;
case 'T':
set_match(COL_TARGET, optarg);
findmnt.flags |= FL_NOSWAPMATCH;
/* See init_scols_filter(), it may overwrite the type */
if (!lsblk->bytes)
break;
- /* fallthrough */
+ FALLTHROUGH;
case COLTYPE_NUM:
scols_column_set_json_type(cl, SCOLS_JSON_NUMBER);
scols_column_set_data_type(cl, SCOLS_DATA_U64);
case COL_SIZE:
if (!representing_in_bytes)
return SCOLS_JSON_STRING;
- /* fallthrough */
+ FALLTHROUGH;
case COL_PID:
case COL_START:
case COL_END:
break;
case 'V':
print_version(EXIT_SUCCESS);
- /* fallthrough */
+ FALLTHROUGH;
case 'h':
usage();
default:
;
else
break;
- /* fallthrough */
+ FALLTHROUGH;
case SYSLOG_ACTION_CLEAR:
if (klogctl(SYSLOG_ACTION_CLEAR, NULL, 0) < 0)
err(EXIT_FAILURE, _("clear kernel buffer failed"));
if (open_flags & O_RDWR)
break;
}
- /* fallthrough */
+ FALLTHROUGH;
default:
/* Other errors */
if (filename)
ret++;
break;
}
- /* fallthrough */
+ FALLTHROUGH;
case 'm':
if (!iskey)
id = strtos32_or_err(optarg, _("failed to parse argument"));
ret++;
break;
}
- /* fallthrough */
+ FALLTHROUGH;
case 'q':
if (!iskey)
id = strtos32_or_err(optarg, _("failed to parse argument"));
ret++;
break;
}
- /* fallthrough */
+ FALLTHROUGH;
case 's':
if (!iskey)
id = strtos32_or_err(optarg, _("failed to parse argument"));
switch(ctl->outmode) {
case OUT_NEWLINE:
scols_table_set_column_separator(table, "\n");
- /* fallthrough */
+ FALLTHROUGH;
case OUT_EXPORT:
scols_table_enable_export(table, 1);
break;
case COL_SIZE:
if (!lsmem->bytes)
break;
- /* fallthrough */
+ FALLTHROUGH;
case COL_NODE:
scols_column_set_json_type(cl, SCOLS_JSON_NUMBER);
break;
break;
case CTL('U'):
cp->kill = ascval; /* set kill character */
- /* fallthrough */
+ FALLTHROUGH;
case CTL('C'):
if (key == CTL('C') && !(op->flags & F_VCONSOLE))
/* Ignore CTRL+C on serial line */
case 1:
/* odd parity */
tp->c_cflag |= PARODD;
- /* fallthrough */
+ FALLTHROUGH;
case 2:
/* even parity */
tp->c_cflag |= PARENB;
tp->c_iflag |= INPCK | ISTRIP;
- /* fallthrough */
+ FALLTHROUGH;
case (1 | 2):
/* no parity bit */
tp->c_cflag &= ~CSIZE;
break;
}
case SIGTERM:
- /* fallthrough */
+ FALLTHROUGH;
case SIGINT:
- /* fallthrough */
+ FALLTHROUGH;
case SIGQUIT:
ssz = log_signal(ctl, info->ssi_signo, NULL);
break;
case 'A':
endfu = fu;
fu->flags |= F_IGNORE;
- /* fallthrough */
+ FALLTHROUGH;
case 'a':
pr->flags = F_ADDRESS;
++p2;
case (size_t)-2:
case (size_t)-1:
state = state_bak;
- /* fallthrough */
+ FALLTHROUGH;
case 0:
mblength = 1;
}
*outstr++ = *inpstr++;
break;
}
- /* fallthrough */
+ FALLTHROUGH;
default:
*outstr++ = c;
}
break;
}
search_again = 1;
- /* fallthrough */
+ FALLTHROUGH;
case more_kc_search:
if (cmd.number == 0)
cmd.number++;
execute_editor(ctl, cmdbuf, sizeof(cmdbuf), filename);
break;
}
- /* fallthrough */
+ FALLTHROUGH;
default:
if (ctl->suppress_bell) {
erase_to_col(ctl, 0);
break;
case SEARCH_FIN:
state = SEARCH;
- /* fallthrough */
+ FALLTHROUGH;
case SEARCH:
if (cmd.cmdline[cmd.cmdlen - 1] == '\\') {
escape = 1;
continue;
}
state = COUNT;
- /* fallthrough */
+ FALLTHROUGH;
case COUNT:
break;
case ADDON_FIN:
}
ctl->buf[ctl->column].c_char = '_';
ctl->buf[ctl->column].c_width = 1;
- /* fallthrough */
+ FALLTHROUGH;
case ' ':
set_column(ctl, ctl->column + 1);
continue;
break;
default:
warnx(_("trouble reading terminfo"));
- /* fallthrough */
+ FALLTHROUGH;
case 0:
if (opt_terminal)
warnx(_("terminal `%s' is not known, defaulting to `dumb'"),