Declare all read only data structures as const
authorMikael Kanstrup <mikael.kanstrup@sonymobile.com>
Fri, 24 Apr 2015 07:19:53 +0000 (09:19 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 25 Apr 2015 14:33:06 +0000 (17:33 +0300)
commit8b423edbd3bb7b5b90cf3d82103d44bedab63e5c
tree12eb22ee298692ca04144fa97818aa1f8e93c0ab
parentfd4fb28179a0b750dff4d38a72a7bf89a2c49813
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>
32 files changed:
hostapd/hostapd_cli.c
src/common/ieee802_11_common.c
src/crypto/crypto_module_tests.c
src/crypto/dh_groups.c
src/drivers/driver.h
src/drivers/driver_privsep.c
src/drivers/drivers.c
src/eap_common/ikev2_common.c
src/eap_peer/eap.c
src/eap_peer/eap.h
src/eap_peer/eap_i.h
src/eap_server/eap.h
src/eap_server/eap_i.h
src/eap_server/eap_server.c
src/eapol_auth/eapol_auth_sm.c
src/eapol_supp/eapol_supp_sm.c
src/radius/radius.c
src/radius/radius_server.c
src/wps/ndef.c
src/wps/wps_module_tests.c
tests/ap-mgmt-fuzzer/ap-mgmt-fuzzer.c
wlantest/gcmp.c
wlantest/test_vectors.c
wlantest/wlantest.h
wpa_supplicant/ctrl_iface.c
wpa_supplicant/eapol_test.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/preauth_test.c
wpa_supplicant/wpa_cli.c
wpa_supplicant/wpa_priv.c
wpa_supplicant/wpa_supplicant.c
wpa_supplicant/wpa_supplicant_i.h