svn commit: r244388 - head/sys/dev/wtap

Monthadar Al Jaberi monthadar at FreeBSD.org
Tue Dec 18 08:41:24 UTC 2012


Author: monthadar
Date: Tue Dec 18 08:41:23 2012
New Revision: 244388
URL: http://svnweb.freebsd.org/changeset/base/244388

Log:
  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)

Modified:
  head/sys/dev/wtap/if_wtap.c

Modified: head/sys/dev/wtap/if_wtap.c
==============================================================================
--- head/sys/dev/wtap/if_wtap.c	Tue Dec 18 08:14:16 2012	(r244387)
+++ head/sys/dev/wtap/if_wtap.c	Tue Dec 18 08:41:23 2012	(r244388)
@@ -348,7 +348,7 @@ wtap_vap_create(struct ieee80211com *ic,
 	/* 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);


More information about the svn-src-head mailing list