![]() This leads to cleaner code overall, and also reduces the size of the hostapd and wpa_supplicant binaries (in hwsim test build on x86_64) by about 2.5 and 3.5KiB respectively. The mechanical conversions all over the code were done with the following spatch: @@ expression SIZE, SRC; expression a; @@ -a = os_malloc(SIZE); +a = os_memdup(SRC, SIZE); <... if (!a) {...} ...> -os_memcpy(a, SRC, SIZE); Signed-off-by: Johannes Berg <johannes.berg@intel.com> |
||
---|---|---|
.. | ||
chap.c | ||
chap.h | ||
eap_common.c | ||
eap_common.h | ||
eap_defs.h | ||
eap_eke_common.c | ||
eap_eke_common.h | ||
eap_fast_common.c | ||
eap_fast_common.h | ||
eap_gpsk_common.c | ||
eap_gpsk_common.h | ||
eap_ikev2_common.c | ||
eap_ikev2_common.h | ||
eap_pax_common.c | ||
eap_pax_common.h | ||
eap_peap_common.c | ||
eap_peap_common.h | ||
eap_psk_common.c | ||
eap_psk_common.h | ||
eap_pwd_common.c | ||
eap_pwd_common.h | ||
eap_sake_common.c | ||
eap_sake_common.h | ||
eap_sim_common.c | ||
eap_sim_common.h | ||
eap_tlv_common.h | ||
eap_ttls.h | ||
eap_wsc_common.c | ||
eap_wsc_common.h | ||
ikev2_common.c | ||
ikev2_common.h | ||
Makefile |