diff options
author | Reid Linnemann <rlinnemann@netgate.com> | 2023-04-13 07:18:18 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2023-04-13 07:18:18 +0000 |
commit | f0311046a0e21cea8f343fa6fe868444ba552b3f (patch) | |
tree | a8584e0f49434d4cb58736a4ea3020ff46b89236 | |
parent | 158adced65f844682d26e1e64f247de94212f135 (diff) | |
download | src-f0311046a0e21cea8f343fa6fe868444ba552b3f.tar.gz src-f0311046a0e21cea8f343fa6fe868444ba552b3f.zip |
ifconfig: change carp commands mcast and mcast6 to DEF_CMD as they take no args
Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D39548
-rw-r--r-- | sbin/ifconfig/carp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ifconfig/carp.c b/sbin/ifconfig/carp.c index 126a15a230df..940b3fa34c74 100644 --- a/sbin/ifconfig/carp.c +++ b/sbin/ifconfig/carp.c @@ -261,9 +261,9 @@ static struct cmd carp_cmds[] = { DEF_CMD_ARG("vhid", setcarp_vhid), DEF_CMD_ARG("state", setcarp_state), DEF_CMD_ARG("peer", setcarp_peer), - DEF_CMD_ARG("mcast", setcarp_mcast), + DEF_CMD("mcast", 0, setcarp_mcast), DEF_CMD_ARG("peer6", setcarp_peer6), - DEF_CMD_ARG("mcast6", setcarp_mcast6), + DEF_CMD("mcast6", 0, setcarp_mcast6), }; static struct afswtch af_carp = { .af_name = "af_carp", |