]> git.ipfire.org Git - thirdparty/hostap.git/commit
Introduce os_memdup()
authorJohannes Berg <johannes.berg@intel.com>
Tue, 7 Mar 2017 09:17:23 +0000 (10:17 +0100)
committerJouni Malinen <j@w1.fi>
Tue, 7 Mar 2017 11:18:49 +0000 (13:18 +0200)
commitdbdda355d0add3f7d96e3279321d3a63abfc4b32
treea096fceb45248e70de3c751eb6277f778a184883
parent60be144e45da5156fa66d23edeb29f9d948a816a
Introduce os_memdup()

This can be used to clean the code and reduce size by converting
os_malloc() followed by os_memcpy() cases to use a single function call.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
src/utils/os.h
src/utils/os_none.c
src/utils/os_unix.c
src/utils/os_win32.c