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>
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile | ||
| radius.c | ||
| radius.h | ||
| radius_client.c | ||
| radius_client.h | ||
| radius_das.c | ||
| radius_das.h | ||
| radius_server.c | ||
| radius_server.h | ||