diff options
author | Christian Schwarz <[email protected]> | 2021-02-16 12:27:48 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-02-19 22:45:04 -0800 |
commit | edc508ac0b80996d872f3c5d86c2ee49b519a661 (patch) | |
tree | 716352a5c576785a78d9a50f3eb16e725f4a5333 /include/sys | |
parent | b5fffa1d294f5e17e8e4fdf34a4fec99c374c586 (diff) |
libzpool: set_global_var: refactor to not modify 'arg'
Also fixes leak of the dlopen handle in the error case.
Reviewed-by: Matthew Ahrens <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Pavel Zakharov <[email protected]>
Signed-off-by: Christian Schwarz <[email protected]>
Closes #11602
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/zfs_context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/zfs_context.h b/include/sys/zfs_context.h index ee3216d67..2ec576f0e 100644 --- a/include/sys/zfs_context.h +++ b/include/sys/zfs_context.h @@ -652,7 +652,7 @@ extern void random_fini(void); struct spa; extern void show_pool_stats(struct spa *); -extern int set_global_var(char *arg); +extern int set_global_var(char const *arg); typedef struct callb_cpr { kmutex_t *cc_lockp; |