From e8d83548349d8cafadd1f95667fd8b055b228931 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 27 Dec 2023 10:10:42 -0800 Subject: [PATCH] ctladm: Fix a typo and add a FALLTHROUGH annotation Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D42934 --- usr.sbin/ctladm/ctladm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/ctladm/ctladm.c b/usr.sbin/ctladm/ctladm.c index fd7fd2f57981..49938be9282a 100644 --- a/usr.sbin/ctladm/ctladm.c +++ b/usr.sbin/ctladm/ctladm.c @@ -573,10 +573,11 @@ cctl_port(int fd, int argc, char **argv, char *combinedopt) } case CCTL_PORT_MODE_REMOVE: if (targ_port == -1) { - warnx("%s: -r require -p", __func__); + warnx("%s: -r requires -p", __func__); retval = 1; goto bailout; } + /* FALLTHROUGH */ case CCTL_PORT_MODE_CREATE: { bzero(&req, sizeof(req)); strlcpy(req.driver, driver, sizeof(req.driver));