fsck.cramfs: mark usage() as noreturn

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2012-01-31 21:20:55 +01:00
parent 337b8eade0
commit e4a36b8bf4
1 changed files with 2 additions and 1 deletions

View 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;