From 15ef4943912f53d784c6150fa9fc368809a0d221 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 9 Aug 2013 11:25:52 +0200 Subject: mac80211.c: Remove or mark unused function parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compiling with "-W -Wall -Wextra" reveals the following warnings in mac80211.c: mac80211.c: In function ‘nl80211_init’: mac80211.c:78:67: warning: unused parameter ‘device’ [-Wunused-parameter] mac80211.c: In function ‘nl80211_wait_handler’: mac80211.c:106:48: warning: unused parameter ‘msg’ [-Wunused-parameter] mac80211.c: In function ‘nl80211_error_handler’: mac80211.c:115:54: warning: unused parameter ‘nla’ [-Wunused-parameter] mac80211.c:117:12: warning: unused parameter ‘arg’ [-Wunused-parameter] mac80211.c: In function ‘nl80211_del_mon_if’: mac80211.c:181:72: warning: unused parameter ‘device’ [-Wunused-parameter] Fix them by either marking them as unused (where we need to conform to library APIs or remove them alltogether (for our own APIs). For the function leave_rfmon_mac80211() the according users (netsniff-ng and trafgen) are also changed. Signed-off-by: Tobias Klauser --- mac80211.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mac80211.h') diff --git a/mac80211.h b/mac80211.h index 7803625..dea4ae0 100644 --- a/mac80211.h +++ b/mac80211.h @@ -2,6 +2,6 @@ #define MAC80211_H extern void enter_rfmon_mac80211(const char *device, char **mondev); -extern void leave_rfmon_mac80211(const char *device, const char *mondev); +extern void leave_rfmon_mac80211(const char *mondev); #endif /* MAC80211_H */ -- cgit v1.2.3-54-g00ecf