Declare all read only data structures as const
By analysing objdump output some read only structures were found in .data section. To help compiler further optimize code declare these as const. Signed-off-by: Mikael Kanstrup <mikael.kanstrup@sonymobile.com>
This commit is contained in:
parent
fd4fb28179
commit
8b423edbd3
32 changed files with 93 additions and 92 deletions
|
@ -22,7 +22,7 @@
|
|||
#define STATE_MACHINE_DEBUG_PREFIX "IEEE 802.1X"
|
||||
#define STATE_MACHINE_ADDR sm->addr
|
||||
|
||||
static struct eapol_callbacks eapol_cb;
|
||||
static const struct eapol_callbacks eapol_cb;
|
||||
|
||||
/* EAPOL state machines are described in IEEE Std 802.1X-2004, Chap. 8.2 */
|
||||
|
||||
|
@ -1056,7 +1056,7 @@ static int eapol_sm_erp_add_key(void *ctx, struct eap_server_erp_key *erp)
|
|||
}
|
||||
|
||||
|
||||
static struct eapol_callbacks eapol_cb =
|
||||
static const struct eapol_callbacks eapol_cb =
|
||||
{
|
||||
eapol_sm_get_eap_user,
|
||||
eapol_sm_get_eap_req_id_text,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue