diff options
Diffstat (limited to 'disk-utils/partx.c')
-rw-r--r-- | disk-utils/partx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/disk-utils/partx.c b/disk-utils/partx.c index e10efa96a..949278eb7 100644 --- a/disk-utils/partx.c +++ b/disk-utils/partx.c @@ -832,7 +832,7 @@ int main(int argc, char **argv) setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); - atexit(close_stdout); + close_stdout_atexit(); while ((c = getopt_long(argc, argv, "abdglrsuvn:t:o:PS:hV", long_opts, NULL)) != -1) { @@ -901,8 +901,7 @@ int main(int argc, char **argv) case 'h': usage(); case 'V': - printf(UTIL_LINUX_VERSION); - return EXIT_SUCCESS; + print_version(EXIT_SUCCESS); default: errtryhelp(EXIT_FAILURE); } |