]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
dmesg: move fallthrough comment to correct place
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 2 Nov 2022 04:19:11 +0000 (05:19 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 10 Nov 2022 03:07:05 +0000 (04:07 +0100)
For some reason the existing location is accepted by the autotools build
but not by meson.

sys-utils/dmesg.c

index 017936255fda6a26675fd8542a234e7417f0da60..ee2e2dac5db772cdda7a51e387151ac84af4b0b1 100644 (file)
@@ -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"));