mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 12:12:13 +03:00
Enable -Wwrite-strings
Also, fix leak from ztest_global_vars_to_zdb_args() Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13348
This commit is contained in:
@@ -346,7 +346,7 @@ dsl_dataset_user_hold(nvlist_t *holds, minor_t cleanup_minor, nvlist_t *errlist)
|
||||
return (ret);
|
||||
}
|
||||
|
||||
typedef int (dsl_holdfunc_t)(dsl_pool_t *dp, const char *name, void *tag,
|
||||
typedef int (dsl_holdfunc_t)(dsl_pool_t *dp, const char *name, const void *tag,
|
||||
dsl_dataset_t **dsp);
|
||||
|
||||
typedef struct dsl_dataset_user_release_arg {
|
||||
@@ -359,7 +359,7 @@ typedef struct dsl_dataset_user_release_arg {
|
||||
|
||||
/* Place a dataset hold on the snapshot identified by passed dsobj string */
|
||||
static int
|
||||
dsl_dataset_hold_obj_string(dsl_pool_t *dp, const char *dsobj, void *tag,
|
||||
dsl_dataset_hold_obj_string(dsl_pool_t *dp, const char *dsobj, const void *tag,
|
||||
dsl_dataset_t **dsp)
|
||||
{
|
||||
return (dsl_dataset_hold_obj(dp, zfs_strtonum(dsobj, NULL), tag, dsp));
|
||||
|
||||
Reference in New Issue
Block a user