diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-08-09 11:25:52 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-08-09 11:25:52 +0200 |
commit | 15ef4943912f53d784c6150fa9fc368809a0d221 (patch) | |
tree | 519ff16056d2f94f05f07a204ed413d122d54928 /netsniff-ng.c | |
parent | b6828945dc12cbf447913445fb0e61745e7779f6 (diff) |
mac80211.c: Remove or mark unused function parameters
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 <tklauser@distanz.ch>
Diffstat (limited to 'netsniff-ng.c')
-rw-r--r-- | netsniff-ng.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c index 0d9046c..1c0b1eb 100644 --- a/netsniff-ng.c +++ b/netsniff-ng.c @@ -320,7 +320,7 @@ static void pcap_to_xmit(struct ctx *ctx) destroy_tx_ring(tx_sock, &tx_ring); if (ctx->rfraw) - leave_rfmon_mac80211(ctx->device_trans, ctx->device_out); + leave_rfmon_mac80211(ctx->device_out); if (__pcap_io->prepare_close_pcap) __pcap_io->prepare_close_pcap(fd, PCAP_MODE_RD); @@ -1006,7 +1006,7 @@ static void recv_only_or_dump(struct ctx *ctx) leave_promiscuous_mode(ctx->device_in, ifflags); if (ctx->rfraw) - leave_rfmon_mac80211(ctx->device_trans, ctx->device_in); + leave_rfmon_mac80211(ctx->device_in); if (dump_to_pcap(ctx)) { if (ctx->dump_dir) |