[PATCH] eapol_test build under GCC-10

Didier 'OdyX' Raboud <[email protected]>
Newsgroups gmane.linux.drivers.hostap
Organization Debian - The Universal OS
Message-ID <[email protected]>
Hello Jouni,

I'm trying to get eapol_test built by default in Debian [0,1] and it seems 
that some minor parts don't build in current Debian sid's GCC, so here comes a 
quick patch to make these to correctly. They're just printf reformatting.

Looking forward to integrate these in wpasupplicant!

Cheers,
    OdyX

[0] https://bugs.debian.org/700870
[1] https://salsa.debian.org/debian/wpa/merge_requests/4

_______________________________________________
Hostap mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/hostap
eapol_test_build.patch (text/x-patch, 799 B)
Fix printf calls for eapol_test build

Origin: vendor
Author: Didier Raboud <[email protected]>
Last-Update: 2020-02-15

--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -6818,7 +6818,7 @@
 	wpa_debug_timestamp = global->params.wpa_debug_timestamp =
 		params->wpa_debug_timestamp;
 
-	wpa_printf(MSG_DEBUG, "wpa_supplicant v" VERSION_STR);
+	wpa_printf(MSG_DEBUG, "wpa_supplicant v%s", VERSION_STR);
 
 	if (eloop_init()) {
 		wpa_printf(MSG_ERROR, "Failed to initialize event loop");
--- a/wpa_supplicant/eapol_test.c
+++ b/wpa_supplicant/eapol_test.c
@@ -1390,7 +1390,7 @@
 			eapol_test.ctrl_iface = 1;
 			break;
 		case 'v':
-			printf("eapol_test v" VERSION_STR "\n");
+			printf("eapol_test v%s\n",VERSION_STR);
 			return 0;
 		case 'W':
 			wait_for_monitor++;
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEJ3k7rA0YCplkx4gZqcb6xg1jAWkFAl5IaooACgkQqcb6xg1j
AWkEchAApG0Oa24b00lGbMGyZ540VdFn+LDQMTiNP5doTtNhIUc64jjmTvXp73Sq
Zupn9Kdqr/XJaMlSGIzWJZ5VV51ZeC5VDY8SYLbjRrKMYr9cf4JyctgS6GosgJFL
Yl+tjW2CydzkcvR9LUQ2hOWsyJtDkyaU8sRTohwW5cLPjPxNX/b5EN2b7+HpAy2X
vooi6fcmnMl7PTr6KnrECjsU7t3527KLU2dYnPlQnWPTOS2y49rLcbVApLr8Dd7Z
rZu/Py/dNvT30GmamnRpD66PiMvZAfC5CqTzY62t8wfACfsrw4CBJhC8hqOJKp7s
N6vyEGoGKwcKGdYlvxqQbYAmxJvSyzYr+fCBBM1Ks4V5deD3KtC++m509kJX28l9
AtE9cmSx3xkFSwBbAFwmh0dDJUuiys7EddKcGXNWGTeKaKgOQSVCrSKOs5euRZhm
tt1IFPIpwCX/O8lF9Qp5lHY/xOWtoE0Cttgu35WzPDmXBYkXM9YnwLcJt1PFQ49B
nuRmMVdHWOzV0SjhsHJJIaSTWkcVrH00UuyTsQwZzgOBlET6Nas7wnd4AUkpw5Rl
aG1dpuGjajTFGH+G2BE/Ws+ZRltNEqFtG+eJjxBQvu+2Pbt4BzIR5QPjMMNljZpI
qB09UDlzM2owKZRxFe7ysxoyaS1zq6zsQDTJoG36bfEHsgmJXh0=
=Su+R
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.