hostap/wpa_supplicant/dbus
Johannes Berg a1f11e34c4 Use os_memdup()
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>
2017-03-07 13:19:10 +02:00
..
.gitignore
dbus-wpa_supplicant.conf
dbus_common.c
dbus_common.h
dbus_common_i.h
dbus_dict_helpers.c
dbus_dict_helpers.h
dbus_new.c D-Bus: Implement Pmf property 2017-01-14 17:28:00 +02:00
dbus_new.h D-Bus: Implement Pmf property 2017-01-14 17:28:00 +02:00
dbus_new_handlers.c Use os_memdup() 2017-03-07 13:19:10 +02:00
dbus_new_handlers.h D-Bus: Implement Pmf property 2017-01-14 17:28:00 +02:00
dbus_new_handlers_p2p.c D-Bus: Use a helper function to get possibly NULL strings 2016-12-23 21:28:43 +02:00
dbus_new_handlers_p2p.h
dbus_new_handlers_wps.c D-Bus: Use a helper function to get possibly NULL strings 2016-12-23 21:28:43 +02:00
dbus_new_helpers.c
dbus_new_helpers.h
dbus_new_introspect.c
dbus_old.c
dbus_old.h
dbus_old_handlers.c
dbus_old_handlers.h
dbus_old_handlers_wps.c
fi.epitest.hostap.WPASupplicant.service.in
fi.w1.wpa_supplicant1.service.in wpa_supplicant: Edit BINDIR in dbus and systemd service files 2011-07-15 12:25:02 +03:00
Makefile