]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FST: Mark format_session_state_extra() static
authorJouni Malinen <j@w1.fi>
Sat, 18 Jul 2015 09:40:23 +0000 (12:40 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 18 Jul 2015 09:40:23 +0000 (12:40 +0300)
This is not used outside fst_ctrl_iface.c.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/fst/fst_ctrl_iface.c

index db68bb50ca0f16d816c68ec0125ef980698798a5..c06a09b3dfd15ea009a415bda962ccc41120ae50 100644 (file)
@@ -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;