aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-11-18 19:53:36 (GMT)
committerJouni Malinen <j@w1.fi>2011-11-18 19:53:36 (GMT)
commit19df9b0761021e983e3e3ca0d65e143347028bd5 (patch)
treef67ad35ba67de613d138cbbcb92608b8033703be
parent373f6c721148387a67153edcb013ab52561fe13d (diff)
downloadhostap-19df9b0761021e983e3e3ca0d65e143347028bd5.zip
hostap-19df9b0761021e983e3e3ca0d65e143347028bd5.tar.gz
hostap-19df9b0761021e983e3e3ca0d65e143347028bd5.tar.bz2
Mark local functions static
These functions are not used outside the file in which they are defined. Signed-hostap: Jouni Malinen <j@w1.fi>
-rw-r--r--src/ap/ieee802_11_shared.c4
-rw-r--r--src/crypto/aes-internal-dec.c2
-rw-r--r--src/crypto/aes-internal-enc.c2
-rw-r--r--src/p2p/p2p.c8
-rw-r--r--src/tls/libtommath.c2
-rw-r--r--src/tls/pkcs5.c2
-rw-r--r--wpa_supplicant/ibss_rsn.c4
-rw-r--r--wpa_supplicant/interworking.c4
-rw-r--r--wpa_supplicant/p2p_supplicant.c4
-rw-r--r--wpa_supplicant/sme.c2
10 files changed, 17 insertions, 17 deletions
diff --git a/src/ap/ieee802_11_shared.c b/src/ap/ieee802_11_shared.c
index c447bce..52a4572 100644
--- a/src/ap/ieee802_11_shared.c
+++ b/src/ap/ieee802_11_shared.c
@@ -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,
- const u8 *sa, const u8 *trans_id)
+static void ieee802_11_send_sa_query_resp(struct hostapd_data *hapd,
+ const u8 *sa, const u8 *trans_id)
{
struct sta_info *sta;
struct ieee80211_mgmt resp;
diff --git a/src/crypto/aes-internal-dec.c b/src/crypto/aes-internal-dec.c
index 2d32c03..a0fc45b 100644
--- a/src/crypto/aes-internal-dec.c
+++ b/src/crypto/aes-internal-dec.c
@@ -32,7 +32,7 @@
*
* @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;
u32 temp;
diff --git a/src/crypto/aes-internal-enc.c b/src/crypto/aes-internal-enc.c
index 2f19826..8726aa7 100644
--- a/src/crypto/aes-internal-enc.c
+++ b/src/crypto/aes-internal-enc.c
@@ -27,7 +27,7 @@
#include "crypto.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;
const int Nr = 10;
diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c
index dfa8662..48a5d00 100644
--- a/src/p2p/p2p.c
+++ b/src/p2p/p2p.c
@@ -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,
- const u8 *bssid, const u8 *data, size_t len,
- int freq)
+static void p2p_rx_action_public(struct p2p_data *p2p, const u8 *da,
+ const u8 *sa, const u8 *bssid, const u8 *data,
+ size_t len, int freq)
{
if (len < 1)
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: 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;
diff --git a/src/tls/libtommath.c b/src/tls/libtommath.c
index 1c02167..7c9857f 100644
--- a/src/tls/libtommath.c
+++ b/src/tls/libtommath.c
@@ -2678,7 +2678,7 @@ mp_montgomery_setup (mp_int * n, mp_digit * rho)
*
* 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;
mp_word W[MP_WARRAY];
diff --git a/src/tls/pkcs5.c b/src/tls/pkcs5.c
index 4291b84..fd9e346 100644
--- a/src/tls/pkcs5.c
+++ b/src/tls/pkcs5.c
@@ -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 &&
oid->oid[0] == 1 /* iso */ &&
diff --git a/wpa_supplicant/ibss_rsn.c b/wpa_supplicant/ibss_rsn.c
index 0d7d568..4bab906 100644
--- a/wpa_supplicant/ibss_rsn.c
+++ b/wpa_supplicant/ibss_rsn.c
@@ -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,
- const u8 *psk)
+static int ibss_rsn_supp_init(struct ibss_rsn_peer *peer, const u8 *own_addr,
+ const u8 *psk)
{
struct wpa_sm_ctx *ctx = os_zalloc(sizeof(*ctx));
if (ctx == NULL)
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index 545c951..2592688 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -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,
- struct nai_realm *realm)
+static struct nai_realm_eap * nai_realm_find_eap(struct wpa_supplicant *wpa_s,
+ struct nai_realm *realm)
{
u8 e;
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index d2668be..18686e5 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -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,
- enum p2p_prov_disc_status status)
+static void wpas_prov_disc_fail(void *ctx, const u8 *peer,
+ enum p2p_prov_disc_status status)
{
struct wpa_supplicant *wpa_s = ctx;
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index fe8be00..3416d68 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -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);
os_free(wpa_s->sme.sa_query_trans_id);