mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
t/z_diff/socket, zfs: main: fix unused argument warnings, ARGSUSED tags
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Rich Ercolani <rincebrain@gmail.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12829
This commit is contained in:
parent
b7ef2340c2
commit
f291fa658e
@ -3760,7 +3760,6 @@ zfs_do_list(int argc, char **argv)
|
||||
* The '-p' flag creates all the non-existing ancestors of the target first.
|
||||
* The '-u' flag prevents file systems from being remounted during rename.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
zfs_do_rename(int argc, char **argv)
|
||||
{
|
||||
@ -3859,7 +3858,6 @@ zfs_do_rename(int argc, char **argv)
|
||||
*
|
||||
* Promotes the given clone fs to be the parent
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
zfs_do_promote(int argc, char **argv)
|
||||
{
|
||||
@ -5095,10 +5093,10 @@ who_type2weight(zfs_deleg_who_type_t who_type)
|
||||
return (res);
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
who_perm_compare(const void *larg, const void *rarg, void *unused)
|
||||
{
|
||||
(void) unused;
|
||||
const who_perm_node_t *l = larg;
|
||||
const who_perm_node_t *r = rarg;
|
||||
zfs_deleg_who_type_t ltype = l->who_perm.who_type;
|
||||
@ -5118,10 +5116,10 @@ who_perm_compare(const void *larg, const void *rarg, void *unused)
|
||||
return (-1);
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
deleg_perm_compare(const void *larg, const void *rarg, void *unused)
|
||||
{
|
||||
(void) unused;
|
||||
const deleg_perm_node_t *l = larg;
|
||||
const deleg_perm_node_t *r = rarg;
|
||||
int res = strncmp(l->dpn_perm.dp_name, r->dpn_perm.dp_name,
|
||||
@ -7210,10 +7208,10 @@ typedef struct unshare_unmount_node {
|
||||
uu_avl_node_t un_avlnode;
|
||||
} unshare_unmount_node_t;
|
||||
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
unshare_unmount_compare(const void *larg, const void *rarg, void *unused)
|
||||
{
|
||||
(void) unused;
|
||||
const unshare_unmount_node_t *l = larg;
|
||||
const unshare_unmount_node_t *r = rarg;
|
||||
|
||||
@ -8614,6 +8612,8 @@ zfs_do_wait(int argc, char **argv)
|
||||
static int
|
||||
zfs_do_version(int argc, char **argv)
|
||||
{
|
||||
(void) argc, (void) argv;
|
||||
|
||||
if (zfs_version_print() == -1)
|
||||
return (1);
|
||||
|
||||
@ -8738,7 +8738,6 @@ main(int argc, char **argv)
|
||||
/*
|
||||
* Attach/detach the given dataset to/from the given jail
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
zfs_do_jail_impl(int argc, char **argv, boolean_t attach)
|
||||
{
|
||||
@ -8776,7 +8775,6 @@ zfs_do_jail_impl(int argc, char **argv, boolean_t attach)
|
||||
*
|
||||
* Attach the given dataset to the given jail
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
zfs_do_jail(int argc, char **argv)
|
||||
{
|
||||
@ -8788,7 +8786,6 @@ zfs_do_jail(int argc, char **argv)
|
||||
*
|
||||
* Detach the given dataset from the given jail
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
zfs_do_unjail(int argc, char **argv)
|
||||
{
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user