git: d6c48b05c0d0 - stable/14 - sbin/ifconfig: remove unused static function parameter
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Sep 2026 14:47:26 UTC
The branch stable/14 has been updated by siva:
URL: https://cgit.FreeBSD.org/src/commit/?id=d6c48b05c0d0de49a06dce6954d4190bd41cac38
commit d6c48b05c0d0de49a06dce6954d4190bd41cac38
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:32:22 +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 6bdb455f1aff..d2ee20d7797c 100644
--- a/sbin/ifconfig/ifieee80211.c
+++ b/sbin/ifconfig/ifieee80211.c
@@ -3374,7 +3374,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;
@@ -3382,7 +3382,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);
@@ -3942,7 +3942,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);