]> git.ipfire.org Git - thirdparty/hostap.git/commit
ndis: Work around lack of C99 designated initializers in MSVC
authorJouni Malinen <j@w1.fi>
Thu, 3 Nov 2011 16:45:21 +0000 (18:45 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 3 Nov 2011 16:45:21 +0000 (18:45 +0200)
commit39e7d718f64eb0bec988c687b1924733f2334c99
tree8c37de4108a36699b88dda20bae64ac5b8cce263
parent4877e1fcf909fc8fbb6489bbf35691a744db9e0d
ndis: Work around lack of C99 designated initializers in MSVC

Use a driver_ndis.c specific initialization function to fill in the
wpa_driver_ops information to make it easier to modify struct
wpa_driver_ops in the future. Being able to build driver_ndis.c
with MSVC was the only reason for having to maintain the same order
of function pointers in struct wpa_driver_ops and for having to
update driver_ndis.c for all changes in that structure.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/drivers/driver_ndis.c
wpa_supplicant/wpa_supplicant.c