half_lines:1;
};
-static void __attribute__((__noreturn__)) usage(FILE *out)
+static void __attribute__((__noreturn__)) usage(void)
{
+ FILE *out = stdout;
fputs(USAGE_HEADER, out);
fprintf(out, _(" %s [options] [<file>...]\n"), program_invocation_short_name);
fprintf(out, USAGE_MAN_TAIL("colcrt(1)"));
- exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
+ exit(EXIT_SUCCESS);
}
static void trim_trailing_spaces(wchar_t *s)
int main(int argc, char **argv)
{
- struct colcrt_control ctl = { 0 };
+ struct colcrt_control ctl = { NULL };
int opt;
enum { NO_UL_OPTION = CHAR_MAX + 1 };
printf(UTIL_LINUX_VERSION);
return EXIT_SUCCESS;
case 'h':
- usage(stdout);
+ usage();
default:
errtryhelp(EXIT_FAILURE);
}