From 57bff80ebff91ea63237ca38ca337013c1fa4c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Sun, 12 Dec 2021 15:26:39 +0100 Subject: [PATCH] libshare: nfs: fix unused, remove argsused MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #12844 --- lib/libshare/nfs.c | 2 ++ lib/libshare/os/freebsd/nfs.c | 1 + lib/libshare/os/linux/nfs.c | 1 + 3 files changed, 4 insertions(+) diff --git a/lib/libshare/nfs.c b/lib/libshare/nfs.c index 980e517cb614..2a901bcec503 100644 --- a/lib/libshare/nfs.c +++ b/lib/libshare/nfs.c @@ -249,6 +249,8 @@ nfs_toggle_share(const char *lockfile, const char *exports, 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 b53ff09872b9..494442cb520f 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 d6dbc158ce91..002c5e24ca66 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); }