]> git.proxmox.com Git - mirror_zfs.git/commitdiff
libshare: nfs: fix unused, remove argsused
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Sun, 12 Dec 2021 14:26:39 +0000 (15:26 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 23 Dec 2021 17:42:47 +0000 (09:42 -0800)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12844

lib/libshare/nfs.c
lib/libshare/os/freebsd/nfs.c
lib/libshare/os/linux/nfs.c

index 980e517cb614436b9bcd714e82ad5d27f3190890..2a901bcec503313b02cfbc691a26dac70c8a43e7 100644 (file)
@@ -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);
index b53ff09872b9dfcea75ba51d7c4273a86f02db8b..494442cb520f04b570ac9b32021455dbd0773214 100644 (file)
@@ -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);
 }
 
index d6dbc158ce9119015c96d2ef37d2cfddf326b45a..002c5e24ca66406eaeabd9ba97d82d1c9659421e 100644 (file)
@@ -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);
 }