diff options
author | наб <[email protected]> | 2022-04-19 20:38:30 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-06-29 14:08:54 -0700 |
commit | a926aab902ac5c680f4766568d19674b80fb58bb (patch) | |
tree | 2f505528a4dea156b50c5602dbcefe48b9e902d7 /module/zfs/spa_config.c | |
parent | e7d90362e5d5f873e1272519da96780cf00a0e28 (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 'module/zfs/spa_config.c')
-rw-r--r-- | module/zfs/spa_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/spa_config.c b/module/zfs/spa_config.c index 254031f31..4dcb9f153 100644 --- a/module/zfs/spa_config.c +++ b/module/zfs/spa_config.c @@ -67,7 +67,7 @@ static uint64_t spa_config_generation = 1; * This can be overridden in userland to preserve an alternate namespace for * userland pools when doing testing. */ -char *spa_config_path = ZPOOL_CACHE; +char *spa_config_path = (char *)ZPOOL_CACHE; #ifdef _KERNEL static int zfs_autoimport_disable = B_TRUE; #endif |