![]() 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> |
||
---|---|---|
.. | ||
bip.c | ||
bss.c | ||
ccmp.c | ||
ctrl.c | ||
gcmp.c | ||
inject.c | ||
Makefile | ||
monitor.c | ||
process.c | ||
readpcap.c | ||
rx_data.c | ||
rx_eapol.c | ||
rx_ip.c | ||
rx_mgmt.c | ||
rx_tdls.c | ||
sta.c | ||
test_vectors.c | ||
tkip.c | ||
wep.c | ||
wired.c | ||
wlantest.c | ||
wlantest.h | ||
wlantest_cli.c | ||
wlantest_ctrl.h | ||
writepcap.c |