From f0311046a0e21cea8f343fa6fe868444ba552b3f Mon Sep 17 00:00:00 2001 From: Reid Linnemann Date: Thu, 13 Apr 2023 09:18:18 +0200 Subject: [PATCH] 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",