diff options
author | наб <[email protected]> | 2022-02-28 13:37:06 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-05-12 09:26:22 -0700 |
commit | 4ccbb23971f6e8b41073509fb4934f1dd1ea1e7e (patch) | |
tree | e09b28b9bab5980d4fa99d3683ed4eaf7586cd7c /lib/libshare | |
parent | 2faf05612f9172f4c02245cdfcca6b62a3e5f527 (diff) |
libshare: interface: {=> const} char *
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #13165
Diffstat (limited to 'lib/libshare')
-rw-r--r-- | lib/libshare/libshare.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libshare/libshare.c b/lib/libshare/libshare.c index 7bc31d7a6..f4684cc69 100644 --- a/lib/libshare/libshare.c +++ b/lib/libshare/libshare.c @@ -77,7 +77,7 @@ libshare_init(void) int sa_enable_share(const char *zfsname, const char *mountpoint, - const char *shareopts, char *protocol) + const char *shareopts, const char *protocol) { int rc, ret = SA_OK; boolean_t found_protocol = B_FALSE; @@ -111,7 +111,7 @@ sa_enable_share(const char *zfsname, const char *mountpoint, } int -sa_disable_share(const char *mountpoint, char *protocol) +sa_disable_share(const char *mountpoint, const char *protocol) { int rc, ret = SA_OK; boolean_t found_protocol = B_FALSE; @@ -140,7 +140,7 @@ sa_disable_share(const char *mountpoint, char *protocol) } boolean_t -sa_is_shared(const char *mountpoint, char *protocol) +sa_is_shared(const char *mountpoint, const char *protocol) { sa_fstype_t *fstype; boolean_t ret = B_FALSE; @@ -177,7 +177,7 @@ sa_commit_shares(const char *protocol) * * convert an error value to an error string */ -char * +const char * sa_errorstr(int err) { static char errstr[32]; @@ -295,7 +295,7 @@ sa_errorstr(int err) } int -sa_validate_shareopts(char *options, char *proto) +sa_validate_shareopts(const char *options, const char *proto) { sa_fstype_t *fstype; |