aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests/cmd/mktree.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/mktree.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/mktree.c')
-rw-r--r--tests/zfs-tests/cmd/mktree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zfs-tests/cmd/mktree.c b/tests/zfs-tests/cmd/mktree.c
index 25b26c9e1..8ee86e5a0 100644
--- a/tests/zfs-tests/cmd/mktree.c
+++ b/tests/zfs-tests/cmd/mktree.c
@@ -153,7 +153,7 @@ crtfile(char *pname)
{
int fd = -1;
int i, size;
- char *context = "0123456789ABCDF";
+ const char *context = "0123456789ABCDF";
char *pbuf;
if (pname == NULL) {