git: 96d7c770efcb - stable/13 - 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:51 UTC
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=96d7c770efcb87d0266c815ba1106a4b8b48628d commit 96d7c770efcb87d0266c815ba1106a4b8b48628d 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:30 +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 0a185d16835e..1384daed74a2 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));