From: Thomas Weißschuh Date: Wed, 2 Nov 2022 04:19:11 +0000 (+0100) Subject: dmesg: move fallthrough comment to correct place X-Git-Tag: v2.39-rc1~430^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=610538bf258b7b2b1f268ce16989b6273f71a220;p=thirdparty%2Futil-linux.git dmesg: move fallthrough comment to correct place For some reason the existing location is accepted by the autotools build but not by meson. --- diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index 017936255f..ee2e2dac5d 100644 --- a/sys-utils/dmesg.c +++ b/sys-utils/dmesg.c @@ -1656,9 +1656,10 @@ int main(int argc, char *argv[]) if (n < 0) err(EXIT_FAILURE, _("read kernel buffer failed")); else if (ctl.action == SYSLOG_ACTION_READ_CLEAR) - ; /* fallthrough */ + ; else break; + /* fallthrough */ case SYSLOG_ACTION_CLEAR: if (klogctl(SYSLOG_ACTION_CLEAR, NULL, 0) < 0) err(EXIT_FAILURE, _("clear kernel buffer failed"));