]> git.ipfire.org Git - thirdparty/hostap.git/commit
Include stddef.h to use the standard offsetof()
authorJouni Malinen <j@w1.fi>
Tue, 7 Jul 2015 09:24:57 +0000 (12:24 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 7 Jul 2015 13:25:06 +0000 (16:25 +0300)
commitbd47c80564dff16ff1a9c66f953e278a1f26f212
tree63720fd75f8fea870c272348a76a750b3365904e
parent028b19675dcf696e8057aaec66c39f3f4066a48b
Include stddef.h to use the standard offsetof()

src/utils/list.h ended up defining a local version of offsetof() due to
stddef.h not getting included. This resulted in unnecessary warnings
from ubsan related to "dereferencing" of a NULL pointer.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/utils/includes.h