aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd_cli.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-10-16 09:21:07 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-16 09:30:32 (GMT)
commite097556eef432911a108e5f9f5936438ae83d0c6 (patch)
treee8b12cb2124a9ff0ff6bdc2358dd61ef6a239389 /hostapd/hostapd_cli.c
parentc43cf332c0683e34319cc366a3d8d0e214d26266 (diff)
downloadhostap-e097556eef432911a108e5f9f5936438ae83d0c6.zip
hostap-e097556eef432911a108e5f9f5936438ae83d0c6.tar.gz
hostap-e097556eef432911a108e5f9f5936438ae83d0c6.tar.bz2
hostapd_cli: Mark number of char *cmd constant
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/hostapd_cli.c')
-rw-r--r--hostapd/hostapd_cli.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
index 88a5ee1..4199267 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -187,7 +187,7 @@ static void hostapd_cli_msg_cb(char *msg, size_t len)
}
-static int _wpa_ctrl_command(struct wpa_ctrl *ctrl, char *cmd, int print)
+static int _wpa_ctrl_command(struct wpa_ctrl *ctrl, const char *cmd, int print)
{
char buf[4096];
size_t len;
@@ -215,13 +215,13 @@ static int _wpa_ctrl_command(struct wpa_ctrl *ctrl, char *cmd, int print)
}
-static inline int wpa_ctrl_command(struct wpa_ctrl *ctrl, char *cmd)
+static inline int wpa_ctrl_command(struct wpa_ctrl *ctrl, const char *cmd)
{
return _wpa_ctrl_command(ctrl, cmd, 1);
}
-static int hostapd_cli_cmd(struct wpa_ctrl *ctrl, const char *cmd,
+static int hostapd_cli_cmd(struct wpa_ctrl *ctrl, const const char *cmd,
int min_args, int argc, char *argv[])
{
char buf[4096];
@@ -750,7 +750,7 @@ static int hostapd_cli_cmd_get_config(struct wpa_ctrl *ctrl, int argc,
}
-static int wpa_ctrl_command_sta(struct wpa_ctrl *ctrl, char *cmd,
+static int wpa_ctrl_command_sta(struct wpa_ctrl *ctrl, const char *cmd,
char *addr, size_t addr_len, int print)
{
char buf[4096], *pos;