X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=wpa_supplicant%2Fpreauth_test.c;h=f4bba98e2a8254259df0716ed7a58b252ef055b9;hb=0e672b89e795ffb613faf17f22e78e47b268e2c5;hp=3503e65e576bf596a6fcbcbfc66c4d7fb2b7d64d;hpb=1e8a6e7553ad23fbd41b8b10671aef306c12d8f9;p=mech_eap.git diff --git a/wpa_supplicant/preauth_test.c b/wpa_supplicant/preauth_test.c index 3503e65..f4bba98 100644 --- a/wpa_supplicant/preauth_test.c +++ b/wpa_supplicant/preauth_test.c @@ -27,10 +27,7 @@ #include "drivers/driver.h" -extern int wpa_debug_level; -extern int wpa_debug_show_keys; - -struct wpa_driver_ops *wpa_drivers[] = { NULL }; +const struct wpa_driver_ops *const wpa_drivers[] = { NULL }; struct preauth_test_data { @@ -309,7 +306,7 @@ int main(int argc, char *argv[]) } os_memset(&wpa_s, 0, sizeof(wpa_s)); - wpa_s.conf = wpa_config_read(argv[1]); + wpa_s.conf = wpa_config_read(argv[1], NULL); if (wpa_s.conf == NULL) { printf("Failed to parse configuration file '%s'.\n", argv[1]); return -1;