From cafc7419719aa546258672ff1dfa91f23876cbd6 Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Wed, 13 Dec 2017 10:54:55 +0100 Subject: [PATCH] return in functions --- src/utils/ubus.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/ubus.c b/src/utils/ubus.c index b08a5d3..55f6179 100644 --- a/src/utils/ubus.c +++ b/src/utils/ubus.c @@ -22,6 +22,8 @@ static struct ubus_context *ctx_clients; /* own ubus conext otherwise strange be static struct ubus_subscriber hostapd_event; static struct blob_buf b; static struct blob_buf b_send_network; +static struct blob_buf network_buf; +static struct blob_buf data_buf; @@ -418,8 +420,7 @@ static int handle_deauth_req(struct blob_attr *msg) { int handle_network_msg(char* msg) { - static struct blob_buf network_buf; - static struct blob_buf data_buf; + printf("HANDLING NETWORK MSG!\n"); struct blob_attr *tb[__NETWORK_MAX];