/*
- * mkfs A simple generic frontend for the for the mkfs program
+ * mkfs A simple generic frontend for the mkfs program
* under Linux. See the manual page for details.
*
* Authors: David Engel, <david@ods.com>
* Incorporated fix by Jonathan Kamens <jik@annex-1-slip-jik.cam.ov.com>
* 1999-02-22 Arkadiusz MiĆkiewicz <misiek@pld.ORG.PL>
* - added Native Language Support
- *
+ *
*/
/*
fprintf(out, _(" <size> number of blocks to be used on the device\n"));
fprintf(out, _(" -V, --verbose explain what is being done;\n"
" specifying -V more than once will cause a dry-run\n"));
- printf(USAGE_HELP_OPTIONS(20));
+ fprintf(out, USAGE_HELP_OPTIONS(20));
- printf(USAGE_MAN_TAIL("mkfs(8)"));
- exit(EXIT_SUCCESS);
-}
-
-static void __attribute__ ((__noreturn__)) print_version(void)
-{
- printf(UTIL_LINUX_VERSION);
+ fprintf(out, USAGE_MAN_TAIL("mkfs(8)"));
exit(EXIT_SUCCESS);
}
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
- atexit(close_stdout);
+ close_stdout_atexit();
if (argc == 2 && !strcmp(argv[1], "-V"))
- print_version();
+ print_version(EXIT_SUCCESS);
/* Check commandline options. */
opterr = 0;
case 'h':
usage();
case VERSION_OPTION:
- print_version();
+ print_version(EXIT_SUCCESS);
default:
optind--;
more = 1;