aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_module_tests.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-06-23 15:19:00 (GMT)
committerJouni Malinen <j@w1.fi>2016-06-23 15:26:09 (GMT)
commit50a17a76e11bc30f01a67d353146aeb3e47baf4a (patch)
tree7f8d98d4a6e14189f68e518470a10aa3294c4ccb /wpa_supplicant/wpas_module_tests.c
parent3e624369cb76cd18e728ebc9f3f95177e753c0a7 (diff)
downloadhostap-50a17a76e11bc30f01a67d353146aeb3e47baf4a.zip
hostap-50a17a76e11bc30f01a67d353146aeb3e47baf4a.tar.gz
hostap-50a17a76e11bc30f01a67d353146aeb3e47baf4a.tar.bz2
tests: Declare module test functions in a header file
This gets rid of number of warnings from sparse. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wpas_module_tests.c')
-rw-r--r--wpa_supplicant/wpas_module_tests.c33
1 files changed, 11 insertions, 22 deletions
diff --git a/wpa_supplicant/wpas_module_tests.c b/wpa_supplicant/wpas_module_tests.c
index 6af1678..4e37591 100644
--- a/wpa_supplicant/wpas_module_tests.c
+++ b/wpa_supplicant/wpas_module_tests.c
@@ -9,6 +9,7 @@
#include "utils/includes.h"
#include "utils/common.h"
+#include "utils/module_tests.h"
#include "wpa_supplicant_i.h"
#include "blacklist.h"
@@ -79,30 +80,18 @@ int wpas_module_tests(void)
ret = -1;
#ifdef CONFIG_WPS
- {
- int wps_module_tests(void);
- if (wps_module_tests() < 0)
- ret = -1;
- }
+ if (wps_module_tests() < 0)
+ ret = -1;
#endif /* CONFIG_WPS */
- {
- int utils_module_tests(void);
- if (utils_module_tests() < 0)
- ret = -1;
- }
-
- {
- int common_module_tests(void);
- if (common_module_tests() < 0)
- ret = -1;
- }
-
- {
- int crypto_module_tests(void);
- if (crypto_module_tests() < 0)
- ret = -1;
- }
+ if (utils_module_tests() < 0)
+ ret = -1;
+
+ if (common_module_tests() < 0)
+ ret = -1;
+
+ if (crypto_module_tests() < 0)
+ ret = -1;
return ret;
}