aboutsummaryrefslogtreecommitdiffstats
path: root/src/fst
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-07-18 09:40:23 (GMT)
committerJouni Malinen <j@w1.fi>2015-07-18 09:40:23 (GMT)
commitc836aa267e31b9869256735d2b0409abe810190c (patch)
tree0a2faadd9b49ed53edfab77cae7e6e869419ffbe /src/fst
parenta248e29dac7e55c10f1c382a7616a01dcd97bc9a (diff)
downloadhostap-c836aa267e31b9869256735d2b0409abe810190c.zip
hostap-c836aa267e31b9869256735d2b0409abe810190c.tar.gz
hostap-c836aa267e31b9869256735d2b0409abe810190c.tar.bz2
FST: Mark format_session_state_extra() static
This is not used outside fst_ctrl_iface.c. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/fst')
-rw-r--r--src/fst/fst_ctrl_iface.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/fst/fst_ctrl_iface.c b/src/fst/fst_ctrl_iface.c
index db68bb5..c06a09b 100644
--- a/src/fst/fst_ctrl_iface.c
+++ b/src/fst/fst_ctrl_iface.c
@@ -32,17 +32,14 @@ static struct fst_group * get_fst_group_by_id(const char *id)
/* notifications */
-Boolean format_session_state_extra(const union fst_event_extra *extra,
- char *buffer, int size)
+static Boolean format_session_state_extra(const union fst_event_extra *extra,
+ char *buffer, size_t size)
{
int len;
char reject_str[32] = FST_CTRL_PVAL_NONE;
const char *initiator = FST_CTRL_PVAL_NONE;
const struct fst_event_extra_session_state *ss;
- if (!extra)
- return TRUE;
-
ss = &extra->session_state;
if (ss->new_state != FST_SESSION_STATE_INITIAL)
return TRUE;