The branch main has been updated by siva: URL: https://cgit.FreeBSD.org/src/commit/?id=e1a1206245be0db252d52f4b090c62a002fc1cc5
commit e1a1206245be0db252d52f4b090c62a002fc1cc5 Author: Siva Mahadevan <[email protected]> AuthorDate: 2026-09-10 14:39:37 +0000 Commit: Siva Mahadevan <[email protected]> CommitDate: 2026-09-10 14:39:37 +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 --- 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);
