aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd_cli.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-08-06 09:38:21 (GMT)
committerJouni Malinen <j@w1.fi>2016-08-06 09:38:21 (GMT)
commite55df99ee6281f43de620c6bd46faee2ca0252a2 (patch)
treec535ab8986d2bd2b7591dcd6238d4c286ed70161 /hostapd/hostapd_cli.c
parent23c130e9b74ffca645d1c420ac3483db26de5ade (diff)
downloadhostap-e55df99ee6281f43de620c6bd46faee2ca0252a2.zip
hostap-e55df99ee6281f43de620c6bd46faee2ca0252a2.tar.gz
hostap-e55df99ee6281f43de620c6bd46faee2ca0252a2.tar.bz2
Share a single str_starts() implementation
No need to define this as a static function in multiple files. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/hostapd_cli.c')
-rw-r--r--hostapd/hostapd_cli.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
index 70629aa..376a025 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -92,12 +92,6 @@ static int get_cmd_arg_num(const char *str, int pos)
}
-static int str_starts(const char *src, const char *match)
-{
- return os_strncmp(src, match, os_strlen(match)) == 0;
-}
-
-
static void register_event_handler(struct wpa_ctrl *ctrl)
{
if (!ctrl_conn)