]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
accounting: Staticise accounting_sta_interim
authorBaruch Siach <baruch@tkos.co.il>
Sun, 5 Aug 2012 16:40:49 +0000 (19:40 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 5 Aug 2012 16:40:49 +0000 (19:40 +0300)
This routine is not used anywhere else.

Signed-hostap: Baruch Siach <baruch@tkos.co.il>

src/ap/accounting.c
src/ap/accounting.h

index 2c3a6d9f4c917851643e5f7ea271483f4f90e17b..0b838a4cb95152bc943467fd9c7a40a55d40c559 100644 (file)
@@ -28,6 +28,8 @@
 
 static void accounting_sta_get_id(struct hostapd_data *hapd,
                                  struct sta_info *sta);
+static void accounting_sta_interim(struct hostapd_data *hapd,
+                                  struct sta_info *sta);
 
 
 static struct radius_msg * accounting_msg(struct hostapd_data *hapd,
@@ -415,7 +417,8 @@ static void accounting_sta_report(struct hostapd_data *hapd,
  * @hapd: hostapd BSS data
  * @sta: The station
  */
-void accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta)
+static void accounting_sta_interim(struct hostapd_data *hapd,
+                                  struct sta_info *sta)
 {
        if (sta->acct_session_started)
                accounting_sta_report(hapd, sta, 0);
index 797e24d7246445bc1e190514051958f2deddd8dd..9d13d011cdd857b701d28ed9260111bbd6bdbfff 100644 (file)
@@ -9,7 +9,6 @@
 #ifndef ACCOUNTING_H
 #define ACCOUNTING_H
 
-void accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta);
 #ifdef CONFIG_NO_ACCOUNTING
 static inline void accounting_sta_start(struct hostapd_data *hapd,
                                        struct sta_info *sta)