Date: Fri, 18 Apr 2025 13:35:20 GMT From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: f5a5dd77ea34 - main - ipfw: fix build Message-ID: <202504181335.53IDZKqB077439@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by ae: URL: https://cgit.FreeBSD.org/src/commit/?id=f5a5dd77ea34760099db5395e982036f77de0901 commit f5a5dd77ea34760099db5395e982036f77de0901 Author: Andrey V. Elsukov <ae@FreeBSD.org> AuthorDate: 2025-04-18 13:32:35 +0000 Commit: Andrey V. Elsukov <ae@FreeBSD.org> CommitDate: 2025-04-18 13:32:35 +0000 ipfw: fix build cast to unsigned type to fix warning. Fixes: 3c76623ad553 --- sbin/ipfw/ipfw2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index 8eeff72463b5..a95e7b0318da 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -2181,8 +2181,8 @@ print_action_instruction(struct buf_pr *bp, const struct format_opts *fo, if (cmd->len == F_INSN_SIZE(ipfw_insn)) bprintf(bp, " %u", cmd->arg1); else - bprintf(bp, " %lubytes", - cmd->len * sizeof(uint32_t)); + bprintf(bp, " %ubytes", + (unsigned)(cmd->len * sizeof(uint32_t))); break; case O_SETDSCP: if (cmd->arg1 == IP_FW_TARG) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202504181335.53IDZKqB077439>