aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
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 /src/utils
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 'src/utils')
-rw-r--r--src/utils/module_tests.h20
-rw-r--r--src/utils/utils_module_tests.c1
2 files changed, 21 insertions, 0 deletions
diff --git a/src/utils/module_tests.h b/src/utils/module_tests.h
new file mode 100644
index 0000000..3bfe4ad
--- /dev/null
+++ b/src/utils/module_tests.h
@@ -0,0 +1,20 @@
+/*
+ * Module tests
+ * Copyright (c) 2014-2015, Jouni Malinen <j@w1.fi>
+ *
+ * This software may be distributed under the terms of the BSD license.
+ * See README for more details.
+ */
+
+#ifndef MODULE_TESTS_H
+#define MODULE_TESTS_H
+
+int wpas_module_tests(void);
+int hapd_module_tests(void);
+
+int utils_module_tests(void);
+int wps_module_tests(void);
+int common_module_tests(void);
+int crypto_module_tests(void);
+
+#endif /* MODULE_TESTS_H */
diff --git a/src/utils/utils_module_tests.c b/src/utils/utils_module_tests.c
index 41511b9..abdb79c 100644
--- a/src/utils/utils_module_tests.c
+++ b/src/utils/utils_module_tests.c
@@ -16,6 +16,7 @@
#include "utils/base64.h"
#include "utils/ip_addr.h"
#include "utils/eloop.h"
+#include "utils/module_tests.h"
struct printf_test_data {