Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 May 2025 01:45:47 GMT
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0bab69859b32 - main - wtap(4): Fix build
Message-ID:  <202505200145.54K1jlWA074568@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by lwhsu:

URL: https://cgit.FreeBSD.org/src/commit/?id=0bab69859b325583d3465043dc7c8ea81ef8e0c5

commit 0bab69859b325583d3465043dc7c8ea81ef8e0c5
Author:     Farhan Khan <farhan@farhan.codes>
AuthorDate: 2025-05-20 01:43:21 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2025-05-20 01:45:24 +0000

    wtap(4): Fix build
    
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D50264
---
 sys/dev/wtap/if_wtap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/wtap/if_wtap.c b/sys/dev/wtap/if_wtap.c
index 3aa3831e72c2..2b098bcc3dda 100644
--- a/sys/dev/wtap/if_wtap.c
+++ b/sys/dev/wtap/if_wtap.c
@@ -33,7 +33,7 @@
  */
 #include "if_wtapvar.h"
 #include <sys/uio.h>    /* uio struct */
-#include <sys/jail.h>
+#include <net/if.h>
 #include <net/if_var.h>
 #include <net/vnet.h>
 
@@ -395,7 +395,7 @@ wtap_vap_create(struct ieee80211com *ic, const char name[IFNAMSIZ],
 	ieee80211_vap_attach(vap, ieee80211_media_change,
 	    ieee80211_media_status, mac);
 	avp->av_dev = make_dev(&wtap_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600,
-	    "%s", (const char *)vap->iv_ifp->if_xname);
+	    "%s", if_name(vap->iv_ifp));
 	avp->av_dev->si_drv1 = sc;
 	callout_init(&avp->av_swba, 0);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202505200145.54K1jlWA074568>