git: f55f4ef13e06 - stable/14 - ctladm: Fix a typo and add a FALLTHROUGH annotation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 18 Jan 2024 22:43:44 UTC
The branch stable/14 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=f55f4ef13e06c2815861edc305e6139bd04cfbc4
commit f55f4ef13e06c2815861edc305e6139bd04cfbc4
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-12-27 18:10:42 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2024-01-18 22:41:27 +0000
ctladm: Fix a typo and add a FALLTHROUGH annotation
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D42934
(cherry picked from commit e8d83548349d8cafadd1f95667fd8b055b228931)
---
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 62dd87155671..3ccf93d5e94e 100644
--- a/usr.sbin/ctladm/ctladm.c
+++ b/usr.sbin/ctladm/ctladm.c
@@ -574,10 +574,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));