git: ce69b9771d70 - stable/15 - sbin/ifconfig: remove unused static function parameter
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Sep 2026 14:21:52 UTC
The branch stable/15 has been updated by siva:
URL: https://cgit.FreeBSD.org/src/commit/?id=ce69b9771d70546599a4effe40490d6609c12553
commit ce69b9771d70546599a4effe40490d6609c12553
Author: Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-09-10 14:39:37 +0000
Commit: Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-09-14 14:02:36 +0000
sbin/ifconfig: remove unused static function parameter
This fixes the build with gcc 16 after the changes
to -Wunused*[0].
[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused
Reviewed by: glebius
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59541
(cherry picked from commit e1a1206245be0db252d52f4b090c62a002fc1cc5)
---
sbin/ifconfig/ifieee80211.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c
index e73dcc2c4f24..d8af92198379 100644
--- a/sbin/ifconfig/ifieee80211.c
+++ b/sbin/ifconfig/ifieee80211.c
@@ -3384,7 +3384,7 @@ printrsnie(if_ctx *ctx, const char *tag, const u_int8_t *ie, size_t ielen)
}
static void
-printrsnxe(if_ctx *ctx, const char *tag, const u_int8_t *ie, size_t ielen)
+printrsnxe(if_ctx *ctx, const char *tag, const u_int8_t *ie)
{
size_t n;
@@ -3392,7 +3392,7 @@ printrsnxe(if_ctx *ctx, const char *tag, const u_int8_t *ie, size_t ielen)
if (!ctx->args->verbose)
return;
- ie += 2, ielen -= 2;
+ ie += 2;
n = (*ie & 0x0f);
printf("<%zu", n + 1);
@@ -3952,7 +3952,7 @@ printies(if_ctx *ctx, const u_int8_t *vp, int ielen, unsigned int maxcols)
printapchanrep(ctx, " APCHANREP", vp, 2+vp[1]);
break;
case IEEE80211_ELEMID_RSN_EXT:
- printrsnxe(ctx, " RSNXE", vp, 2+vp[1]);
+ printrsnxe(ctx, " RSNXE", vp);
break;
case IEEE80211_ELEMID_EXTFIELD:
printexties(ctx, vp, maxcols);