diff options
author | наб <[email protected]> | 2021-12-12 15:26:39 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-12-23 09:42:47 -0800 |
commit | 57bff80ebff91ea63237ca38ca337013c1fa4c40 (patch) | |
tree | 69dae6f42c4809abe6036621ff96663f9432a17f /lib | |
parent | bfc178970309984e996baa5f654c8681a203a4aa (diff) |
libshare: nfs: fix unused, remove argsused
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #12844
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libshare/nfs.c | 2 | ||||
-rw-r--r-- | lib/libshare/os/freebsd/nfs.c | 1 | ||||
-rw-r--r-- | lib/libshare/os/linux/nfs.c | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/lib/libshare/nfs.c b/lib/libshare/nfs.c index 980e517cb..2a901bcec 100644 --- a/lib/libshare/nfs.c +++ b/lib/libshare/nfs.c @@ -249,6 +249,8 @@ fullerr: static boolean_t nfs_is_shared_cb(void *userdata, char *line, boolean_t found_mountpoint) { + (void) line; + boolean_t *found = userdata; *found = found_mountpoint; return (!found_mountpoint); diff --git a/lib/libshare/os/freebsd/nfs.c b/lib/libshare/os/freebsd/nfs.c index b53ff0987..494442cb5 100644 --- a/lib/libshare/os/freebsd/nfs.c +++ b/lib/libshare/os/freebsd/nfs.c @@ -134,6 +134,7 @@ nfs_enable_share(sa_share_impl_t impl_share) static int nfs_disable_share_impl(sa_share_impl_t impl_share, FILE *tmpfile) { + (void) impl_share, (void) tmpfile; return (SA_OK); } diff --git a/lib/libshare/os/linux/nfs.c b/lib/libshare/os/linux/nfs.c index d6dbc158c..002c5e24c 100644 --- a/lib/libshare/os/linux/nfs.c +++ b/lib/libshare/os/linux/nfs.c @@ -440,6 +440,7 @@ nfs_enable_share(sa_share_impl_t impl_share) static int nfs_disable_share_impl(sa_share_impl_t impl_share, FILE *tmpfile) { + (void) impl_share, (void) tmpfile; return (SA_OK); } |