summaryrefslogtreecommitdiff
path: root/mac80211.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-07-01 10:28:43 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-07-01 10:30:06 +0200
commite3bd65b7eaa5b47b4029f92e909a6aae4fbdb152 (patch)
tree7ece8f21e7f63dbec3e32ba4ba1bee30f4a9b614 /mac80211.c
parentf6b2b535d482084e49ba8787973d8586ed51f563 (diff)
netsniff-ng: dev: Rename device_ifindex_get to __device_ifindex
Make the function name more in line with the scheme we use for other similar functions: the function prefixed with __ returns a negative error code, the function without prefix panic()'s on error. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'mac80211.c')
-rw-r--r--mac80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mac80211.c b/mac80211.c
index ee81646..f22b600 100644
--- a/mac80211.c
+++ b/mac80211.c
@@ -227,7 +227,7 @@ void enter_rfmon_mac80211(const char *device, char **mondev)
slprintf(mondevice, sizeof(mondevice), "mon%u", n);
- if (device_ifindex_get(mondevice) > 0)
+ if (__device_ifindex(mondevice) > 0)
continue;
ret = nl80211_add_mon_if(&nlstate, device, mondevice);