LIBBLKID_VERSION, LIBBLKID_DATE);
}
-static void usage(int error)
+static void __attribute__((__noreturn__)) usage(void)
{
- FILE *out = error ? stderr : stdout;
+ FILE *out = stdout;
fputs(USAGE_HEADER, out);
fprintf(out, _( " %s --label <label> | --uuid <uuid>\n\n"), program_invocation_short_name);
fputs(USAGE_HELP, out);
fputs(USAGE_VERSION, out);
fprintf(out, USAGE_MAN_TAIL("blkid(8)"));
- exit(error);
+ exit(EXIT_SUCCESS);
}
/*
/* ignore - backward compatibility */
break;
case 'h':
- usage(0);
+ usage();
break;
default:
errtryhelp(EXIT_FAILURE);
{ .nstype = 0, .name = NULL, .fd = -1 }
};
-static void __attribute__((__noreturn__)) usage(int status)
+static void __attribute__((__noreturn__)) usage(void)
{
- FILE *out = status == EXIT_SUCCESS ? stdout : stderr;
+ FILE *out = stdout;
fputs(USAGE_HEADER, out);
fprintf(out, _(" %s [options] [<program> [<argument>...]]\n"),
fputs(USAGE_VERSION, out);
fprintf(out, USAGE_MAN_TAIL("nsenter(1)"));
- exit(status);
+ exit(EXIT_SUCCESS);
}
static pid_t namespace_target_pid = 0;
longopts, NULL)) != -1) {
switch (c) {
case 'h':
- usage(EXIT_SUCCESS);
+ usage();
case 'V':
printf(UTIL_LINUX_VERSION);
return EXIT_SUCCESS;
}
}
-static void __attribute__((__noreturn__)) usage(int status)
+static void __attribute__((__noreturn__)) usage(void)
{
- FILE *out = status == EXIT_SUCCESS ? stdout : stderr;
+ FILE *out = stdout;
fputs(USAGE_HEADER, out);
fprintf(out, _(" %s [options] [<program> [<argument>...]]\n"),
fputs(USAGE_VERSION, out);
fprintf(out, USAGE_MAN_TAIL("unshare(1)"));
- exit(status);
+ exit(EXIT_SUCCESS);
}
int main(int argc, char *argv[])
forkit = 1;
break;
case 'h':
- usage(EXIT_SUCCESS);
+ usage();
case 'V':
printf(UTIL_LINUX_VERSION);
return EXIT_SUCCESS;
}
}
-static void __attribute__((__noreturn__)) usage(int rc)
+static void __attribute__((__noreturn__)) usage(void)
{
- FILE *out = rc == EXIT_FAILURE ? stderr : stdout;
+ FILE *out = stdout;
fputs(USAGE_HEADER, out);
fprintf(out, _(" %s [options] [<file>...]\n"), program_invocation_short_name);
fputs(USAGE_VERSION, out);
fprintf(out, USAGE_MAN_TAIL("column(1)"));
- exit(rc);
+ exit(EXIT_SUCCESS);
}
int main(int argc, char **argv)
ctl.tab_colhide = optarg;
break;
case 'h':
- usage(EXIT_SUCCESS);
+ usage();
break;
case 'i':
ctl.tree_id = optarg;