aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests/cmd/get_diff.c
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-04-19 20:38:30 +0200
committerBrian Behlendorf <[email protected]>2022-06-29 14:08:54 -0700
commita926aab902ac5c680f4766568d19674b80fb58bb (patch)
tree2f505528a4dea156b50c5602dbcefe48b9e902d7 /tests/zfs-tests/cmd/get_diff.c
parente7d90362e5d5f873e1272519da96780cf00a0e28 (diff)
Enable -Wwrite-strings
Also, fix leak from ztest_global_vars_to_zdb_args() Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13348
Diffstat (limited to 'tests/zfs-tests/cmd/get_diff.c')
-rw-r--r--tests/zfs-tests/cmd/get_diff.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/zfs-tests/cmd/get_diff.c b/tests/zfs-tests/cmd/get_diff.c
index 2799f46b0..3f8fe787f 100644
--- a/tests/zfs-tests/cmd/get_diff.c
+++ b/tests/zfs-tests/cmd/get_diff.c
@@ -25,10 +25,9 @@
#include <errno.h>
static void
-usage(char *msg, int exit_value)
+usage(const char *msg, int exit_value)
{
- (void) fprintf(stderr, "get_diff file redacted_file\n");
- (void) fprintf(stderr, "%s\n", msg);
+ (void) fprintf(stderr, "usage: get_diff file redacted_file\n%s\n", msg);
exit(exit_value);
}