git: f0311046a0e2 - main - ifconfig: change carp commands mcast and mcast6 to DEF_CMD as they take no args

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Thu, 13 Apr 2023 09:34:02 UTC
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=f0311046a0e21cea8f343fa6fe868444ba552b3f

commit f0311046a0e21cea8f343fa6fe868444ba552b3f
Author:     Reid Linnemann <rlinnemann@netgate.com>
AuthorDate: 2023-04-13 07:18:18 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2023-04-13 07:18:18 +0000

    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
---
 sbin/ifconfig/carp.c | 4 ++--
 1 file 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",