summaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorChristian Schwarz <[email protected]>2021-02-16 12:27:48 +0100
committerBrian Behlendorf <[email protected]>2021-02-19 22:45:04 -0800
commitedc508ac0b80996d872f3c5d86c2ee49b519a661 (patch)
tree716352a5c576785a78d9a50f3eb16e725f4a5333 /include/sys
parentb5fffa1d294f5e17e8e4fdf34a4fec99c374c586 (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.h2
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;