diff options
Diffstat (limited to 'disk-utils/fdformat.c')
-rw-r--r-- | disk-utils/fdformat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/disk-utils/fdformat.c b/disk-utils/fdformat.c index f461c82e1..c10776f76 100644 --- a/disk-utils/fdformat.c +++ b/disk-utils/fdformat.c @@ -186,7 +186,7 @@ int main(int argc, char **argv) setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); - atexit(close_stdout); + close_stdout_atexit(); while ((ch = getopt_long(argc, argv, "f:t:r:nVh", longopts, NULL)) != -1) switch (ch) { @@ -204,8 +204,7 @@ int main(int argc, char **argv) verify = 0; break; case 'V': - printf(UTIL_LINUX_VERSION); - exit(EXIT_SUCCESS); + print_version(EXIT_SUCCESS); case 'h': usage(); default: |