]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - disk-utils/addpart.c
wipefs: add --lock and LOCK_BLOCK_DEVICE
[thirdparty/util-linux.git] / disk-utils / addpart.c
index e793ae03f7b33b51ccf8ea99fd706e22e13a8a4d..33abb36cab7b487beaf1878c310d04ff09efb709 100644 (file)
@@ -19,8 +19,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Tell the kernel about the existence of a specified partition.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       print_usage_help_options(16);
-       fprintf(out, USAGE_MAN_TAIL("addpart(8)"));
+       printf(USAGE_HELP_OPTIONS(16));
+       printf(USAGE_MAN_TAIL("addpart(8)"));
        exit(EXIT_SUCCESS);
 }
 
@@ -41,8 +41,7 @@ int main(int argc, char **argv)
        while ((c = getopt_long(argc, argv, "Vh", longopts, NULL)) != -1)
                switch (c) {
                case 'V':
-                       printf(UTIL_LINUX_VERSION);
-                       return EXIT_SUCCESS;
+                       print_version(EXIT_SUCCESS);
                case 'h':
                        usage();
                default: