Mark local functions static

These functions are not used outside the file in which they are defined.

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2011-11-18 21:53:36 +02:00
parent 373f6c7211
commit 19df9b0761
10 changed files with 17 additions and 17 deletions

View file

@ -79,8 +79,8 @@ void ieee802_11_send_sa_query_req(struct hostapd_data *hapd,
} }
void ieee802_11_send_sa_query_resp(struct hostapd_data *hapd, static void ieee802_11_send_sa_query_resp(struct hostapd_data *hapd,
const u8 *sa, const u8 *trans_id) const u8 *sa, const u8 *trans_id)
{ {
struct sta_info *sta; struct sta_info *sta;
struct ieee80211_mgmt resp; struct ieee80211_mgmt resp;

View file

@ -32,7 +32,7 @@
* *
* @return the number of rounds for the given cipher key size. * @return the number of rounds for the given cipher key size.
*/ */
void rijndaelKeySetupDec(u32 rk[/*44*/], const u8 cipherKey[]) static void rijndaelKeySetupDec(u32 rk[/*44*/], const u8 cipherKey[])
{ {
int Nr = 10, i, j; int Nr = 10, i, j;
u32 temp; u32 temp;

View file

@ -27,7 +27,7 @@
#include "crypto.h" #include "crypto.h"
#include "aes_i.h" #include "aes_i.h"
void rijndaelEncrypt(const u32 rk[/*44*/], const u8 pt[16], u8 ct[16]) static void rijndaelEncrypt(const u32 rk[/*44*/], const u8 pt[16], u8 ct[16])
{ {
u32 s0, s1, s2, s3, t0, t1, t2, t3; u32 s0, s1, s2, s3, t0, t1, t2, t3;
const int Nr = 10; const int Nr = 10;

View file

@ -1412,9 +1412,9 @@ static void p2p_rx_p2p_action(struct p2p_data *p2p, const u8 *sa,
} }
void p2p_rx_action_public(struct p2p_data *p2p, const u8 *da, const u8 *sa, static void p2p_rx_action_public(struct p2p_data *p2p, const u8 *da,
const u8 *bssid, const u8 *data, size_t len, const u8 *sa, const u8 *bssid, const u8 *data,
int freq) size_t len, int freq)
{ {
if (len < 1) if (len < 1)
return; return;
@ -2377,7 +2377,7 @@ static void p2p_sd_cb(struct p2p_data *p2p, int success)
* p2p_retry_pd - Retry any pending provision disc requests in IDLE state * p2p_retry_pd - Retry any pending provision disc requests in IDLE state
* @p2p: P2P module context from p2p_init() * @p2p: P2P module context from p2p_init()
*/ */
void p2p_retry_pd(struct p2p_data *p2p) static void p2p_retry_pd(struct p2p_data *p2p)
{ {
struct p2p_device *dev; struct p2p_device *dev;

View file

@ -2678,7 +2678,7 @@ mp_montgomery_setup (mp_int * n, mp_digit * rho)
* *
* Based on Algorithm 14.32 on pp.601 of HAC. * Based on Algorithm 14.32 on pp.601 of HAC.
*/ */
int fast_mp_montgomery_reduce (mp_int * x, mp_int * n, mp_digit rho) static int fast_mp_montgomery_reduce (mp_int * x, mp_int * n, mp_digit rho)
{ {
int ix, res, olduse; int ix, res, olduse;
mp_word W[MP_WARRAY]; mp_word W[MP_WARRAY];

View file

@ -32,7 +32,7 @@ struct pkcs5_params {
}; };
enum pkcs5_alg pkcs5_get_alg(struct asn1_oid *oid) static enum pkcs5_alg pkcs5_get_alg(struct asn1_oid *oid)
{ {
if (oid->len == 7 && if (oid->len == 7 &&
oid->oid[0] == 1 /* iso */ && oid->oid[0] == 1 /* iso */ &&

View file

@ -168,8 +168,8 @@ static void supp_deauthenticate(void * ctx, int reason_code)
} }
int ibss_rsn_supp_init(struct ibss_rsn_peer *peer, const u8 *own_addr, static int ibss_rsn_supp_init(struct ibss_rsn_peer *peer, const u8 *own_addr,
const u8 *psk) const u8 *psk)
{ {
struct wpa_sm_ctx *ctx = os_zalloc(sizeof(*ctx)); struct wpa_sm_ctx *ctx = os_zalloc(sizeof(*ctx));
if (ctx == NULL) if (ctx == NULL)

View file

@ -422,8 +422,8 @@ static int nai_realm_cred_username(struct nai_realm_eap *eap)
} }
struct nai_realm_eap * nai_realm_find_eap(struct wpa_supplicant *wpa_s, static struct nai_realm_eap * nai_realm_find_eap(struct wpa_supplicant *wpa_s,
struct nai_realm *realm) struct nai_realm *realm)
{ {
u8 e; u8 e;

View file

@ -1752,8 +1752,8 @@ void wpas_prov_disc_resp(void *ctx, const u8 *peer, u16 config_methods)
} }
void wpas_prov_disc_fail(void *ctx, const u8 *peer, static void wpas_prov_disc_fail(void *ctx, const u8 *peer,
enum p2p_prov_disc_status status) enum p2p_prov_disc_status status)
{ {
struct wpa_supplicant *wpa_s = ctx; struct wpa_supplicant *wpa_s = ctx;

View file

@ -695,7 +695,7 @@ static void sme_start_sa_query(struct wpa_supplicant *wpa_s)
} }
void sme_stop_sa_query(struct wpa_supplicant *wpa_s) static void sme_stop_sa_query(struct wpa_supplicant *wpa_s)
{ {
eloop_cancel_timeout(sme_sa_query_timer, wpa_s, NULL); eloop_cancel_timeout(sme_sa_query_timer, wpa_s, NULL);
os_free(wpa_s->sme.sa_query_trans_id); os_free(wpa_s->sme.sa_query_trans_id);