Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Dec 2012 08:41:24 +0000 (UTC)
From:      Monthadar Al Jaberi <monthadar@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244388 - head/sys/dev/wtap
Message-ID:  <201212180841.qBI8fOKs097038@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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