]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fsck.cramfs: mark usage() as noreturn
authorKarel Zak <kzak@redhat.com>
Tue, 31 Jan 2012 20:20:55 +0000 (21:20 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 31 Jan 2012 20:20:55 +0000 (21:20 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fsck.cramfs.c

index 05425eec07667c26268987353f863205b95739e1..0bbe048378be06b1a60d1656dd3e6fb197fbf5da 100644 (file)
@@ -106,7 +106,7 @@ static char *outbuffer;
 static size_t page_size;
 
 /* Input status of 0 to print help and exit without an error. */
-static void usage(int status)
+static void __attribute__((__noreturn__)) usage(int status)
 {
        FILE *stream = status ? stderr : stdout;
 
@@ -649,6 +649,7 @@ int main(int argc, char **argv)
                switch (c) {
                case 'h':
                        usage(FSCK_OK);
+                       break;
                case 'x':
 #ifdef INCLUDE_FS_TESTS
                        opt_extract = 1;