aboutsummaryrefslogtreecommitdiff
path: root/p2p.c
diff options
context:
space:
mode:
Diffstat (limited to 'p2p.c')
-rw-r--r--p2p.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/p2p.c b/p2p.c
index addb740..2d4bab0 100644
--- a/p2p.c
+++ b/p2p.c
@@ -1,7 +1,3 @@
-#include <net/if.h>
-#include <errno.h>
-#include <string.h>
-
#include <netlink/genl/genl.h>
#include <netlink/genl/family.h>
#include <netlink/genl/ctrl.h>
@@ -13,7 +9,7 @@
SECTION(p2p);
-static int handle_p2p_start(struct nl80211_state *state, struct nl_cb *cb,
+static int handle_p2p_start(struct nl80211_state *state,
struct nl_msg *msg, int argc, char **argv,
enum id_input id)
{
@@ -21,7 +17,7 @@ static int handle_p2p_start(struct nl80211_state *state, struct nl_cb *cb,
}
COMMAND(p2p, start, "", NL80211_CMD_START_P2P_DEVICE, 0, CIB_WDEV, handle_p2p_start, "");
-static int handle_p2p_stop(struct nl80211_state *state, struct nl_cb *cb,
+static int handle_p2p_stop(struct nl80211_state *state,
struct nl_msg *msg, int argc, char **argv,
enum id_input id)
{