[PATCH] accounting: staticise accounting_sta_interim

Jouni Malinen j
Sat Aug 4 01:59:28 PDT 2012


On Thu, Jul 05, 2012 at 05:19:51PM +0300, Baruch Siach wrote:
> This routine is not used anywhere else.

> +static void accounting_sta_interim(struct hostapd_data *hapd,
> +				   struct sta_info *sta)
> +{
> +	if (sta->acct_session_started)
> +		accounting_sta_report(hapd, sta, 0);

This results in compiler warnings/errors due to accounting_sta_report()
not being declared here. It would be easier to just leave
accounting_sta_interim() in its old location and add a static prototype
for it in the beginning of the file.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list