aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-02-06 10:08:28 (GMT)
committerJouni Malinen <j@w1.fi>2015-06-10 13:02:00 (GMT)
commit995a3a06f4bfe85da787ae7b683c874b1f170e64 (patch)
tree0997b27915303636aaf0a0f3a8c21fefa888e60b /hostapd/ctrl_iface.c
parente66bcedd3ea62c1fa72f95cea918483ec5cb84a5 (diff)
downloadhostap-995a3a06f4bfe85da787ae7b683c874b1f170e64.zip
hostap-995a3a06f4bfe85da787ae7b683c874b1f170e64.tar.gz
hostap-995a3a06f4bfe85da787ae7b683c874b1f170e64.tar.bz2
Document the wpa_msg_cb "global" parameter
Instead of an int variable with magic values 0, 1, 2, use an enum that gives clearer meaning to the values now that the original boolean type global argument is not really a boolean anymore. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd/ctrl_iface.c')
-rw-r--r--hostapd/ctrl_iface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index 86f1aa6..8ab2941 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -2130,7 +2130,8 @@ static char * hostapd_ctrl_iface_path(struct hostapd_data *hapd)
}
-static void hostapd_ctrl_iface_msg_cb(void *ctx, int level, int global,
+static void hostapd_ctrl_iface_msg_cb(void *ctx, int level,
+ enum wpa_msg_type type,
const char *txt, size_t len)
{
struct hostapd_data *hapd = ctx;