summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authormonthadar <monthadar@FreeBSD.org>2012-12-18 08:41:23 +0000
committermonthadar <monthadar@FreeBSD.org>2012-12-18 08:41:23 +0000
commitdd18a607316c24117decc92ba7bac3854c4655d3 (patch)
tree9272fc5ed9a029dae5779205cf6638f35a98f4b7 /sys/dev
parent824cae556ce5476f9cd79a50e14c4dc250161c14 (diff)
downloadFreeBSD-src-dd18a607316c24117decc92ba7bac3854c4655d3.zip
FreeBSD-src-dd18a607316c24117decc92ba7bac3854c4655d3.tar.gz
wtap: fix clang warning.
* The warning message was: 'warning error: format string is not a string literal'; * Changed how make_dev is called, now a string literal for formatting is used; Approved by: adrian (mentor)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/wtap/if_wtap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/wtap/if_wtap.c b/sys/dev/wtap/if_wtap.c
index 1a77274..a188d3e 100644
--- a/sys/dev/wtap/if_wtap.c
+++ b/sys/dev/wtap/if_wtap.c
@@ -348,7 +348,7 @@ wtap_vap_create(struct ieee80211com *ic, const char name[IFNAMSIZ],
/* complete setup */
ieee80211_vap_attach(vap, wtap_media_change, ieee80211_media_status);
avp->av_dev = make_dev(&wtap_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600,
- (const char *)ic->ic_ifp->if_xname);
+ "%s", (const char *)ic->ic_ifp->if_xname);
/* TODO this is a hack to force it to choose the rate we want */
ni = ieee80211_ref_node(vap->iv_bss);
OpenPOWER on IntegriCloud