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
|
@ -35,7 +35,7 @@
|
|||
*/
|
||||
#define RADIUS_MAX_MSG_LEN 3000
|
||||
|
||||
static struct eapol_callbacks radius_server_eapol_cb;
|
||||
static const struct eapol_callbacks radius_server_eapol_cb;
|
||||
|
||||
struct radius_client;
|
||||
struct radius_server_data;
|
||||
|
@ -2101,7 +2101,7 @@ static int radius_server_erp_add_key(void *ctx, struct eap_server_erp_key *erp)
|
|||
#endif /* CONFIG_ERP */
|
||||
|
||||
|
||||
static struct eapol_callbacks radius_server_eapol_cb =
|
||||
static const struct eapol_callbacks radius_server_eapol_cb =
|
||||
{
|
||||
.get_eap_user = radius_server_get_eap_user,
|
||||
.get_eap_req_id_text = radius_server_get_eap_req_id_text,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue