From patchwork Sun Aug 5 05:16:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 175150 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 1B7B52C008D for ; Sun, 5 Aug 2012 15:16:53 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 2D8B09C094; Sun, 5 Aug 2012 01:16:48 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RFMRBfN4u1+K; Sun, 5 Aug 2012 01:16:47 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 6C1779C138; Sun, 5 Aug 2012 01:16:43 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id EF7FC9C138 for ; Sun, 5 Aug 2012 01:16:41 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zOfxBp5wMmBX for ; Sun, 5 Aug 2012 01:16:35 -0400 (EDT) Received: from sivan.tkos.co.il (guitar.tcltek.co.il [192.115.133.116]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id C85929C094 for ; Sun, 5 Aug 2012 01:16:31 -0400 (EDT) Received: from sapphire.alvarion.com (taragon.tkos.co.il [10.0.4.3]) by sivan.tkos.co.il (Postfix) with ESMTP id ECFB3B4FA3; Sun, 5 Aug 2012 08:16:29 +0300 (IDT) From: Baruch Siach To: hostap@lists.shmoo.com Subject: [PATCH v2] accounting: staticise accounting_sta_interim Date: Sun, 5 Aug 2012 08:16:07 +0300 Message-Id: <3f537906929211c56204204da3c05872b9824a2a.1344143540.git.baruch@tkos.co.il> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <20120804085928.GC3970@w1.fi> References: <20120804085928.GC3970@w1.fi> X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com This routine is not used anywhere else. Signed-hostap Baruch Siach --- v2: declare accounting_sta_interim at the beginning of accounting.c instead of moving it, to avoid a warning due to accounting_sta_report() not being declared. src/ap/accounting.c | 5 ++++- src/ap/accounting.h | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ap/accounting.c b/src/ap/accounting.c index 2c3a6d9..4b923ef 100644 --- a/src/ap/accounting.c +++ b/src/ap/accounting.c @@ -29,6 +29,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, struct sta_info *sta, @@ -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); diff --git a/src/ap/accounting.h b/src/ap/accounting.h index 797e24d..9d13d01 100644 --- a/src/ap/accounting.h +++ b/src/ap/accounting.h @@ -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)