aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/libosmo-gtlv/gtlv_dec_enc_test.c2
-rw-r--r--tests/libosmo-gtlv/gtlv_test.c10
-rw-r--r--tests/libosmo-gtlv/test_gtlv_gen/gtlv_gen_test.c2
-rw-r--r--tests/libosmo-gtlv/test_tliv/tliv_test.c2
-rw-r--r--tests/libosmo-pfcp/pfcp_test.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/tests/libosmo-gtlv/gtlv_dec_enc_test.c b/tests/libosmo-gtlv/gtlv_dec_enc_test.c
index 848c0ef..fe72a10 100644
--- a/tests/libosmo-gtlv/gtlv_dec_enc_test.c
+++ b/tests/libosmo-gtlv/gtlv_dec_enc_test.c
@@ -543,7 +543,7 @@ void test_enc_dec(const char *label, const struct osmo_gtlv_cfg *cfg, const stru
}
}
-int main()
+int main(int argc, char **argv)
{
ctx = talloc_named_const(NULL, 0, "gtlv_test");
msgb_talloc_ctx_init(ctx, 0);
diff --git a/tests/libosmo-gtlv/gtlv_test.c b/tests/libosmo-gtlv/gtlv_test.c
index 8023699..8711063 100644
--- a/tests/libosmo-gtlv/gtlv_test.c
+++ b/tests/libosmo-gtlv/gtlv_test.c
@@ -329,7 +329,7 @@ struct ie *t8l8v_tests[] = {
t8l8v_test_multi,
};
-void test_t8l8v()
+void test_t8l8v(void)
{
test_tlv(__func__, t8l8v_tests, ARRAY_SIZE(t8l8v_tests), &osmo_t8l8v_cfg);
}
@@ -378,7 +378,7 @@ struct ie *t16l16v_tests[] = {
t16l16v_test_multi,
};
-void test_t16l16v()
+void test_t16l16v(void)
{
test_tlv(__func__, t16l16v_tests, ARRAY_SIZE(t16l16v_tests), &osmo_t16l16v_cfg);
}
@@ -521,7 +521,7 @@ const struct osmo_gtlv_cfg txlxv_cfg = {
.store_tl = txlxv_store_tl,
};
-void test_txlxv()
+void test_txlxv(void)
{
test_tlv(__func__, txlxv_tests, ARRAY_SIZE(txlxv_tests), &txlxv_cfg);
}
@@ -609,12 +609,12 @@ struct ie *tliv_tests[] = {
tliv_test1,
};
-void test_tliv()
+void test_tliv(void)
{
test_tlv(__func__, tliv_tests, ARRAY_SIZE(tliv_tests), &osmo_tliv_cfg);
}
-int main()
+int main(int argc, char **argv)
{
ctx = talloc_named_const(NULL, 0, "gtlv_test");
msgb_talloc_ctx_init(ctx, 0);
diff --git a/tests/libosmo-gtlv/test_gtlv_gen/gtlv_gen_test.c b/tests/libosmo-gtlv/test_gtlv_gen/gtlv_gen_test.c
index 1997fdc..411b802 100644
--- a/tests/libosmo-gtlv/test_gtlv_gen/gtlv_gen_test.c
+++ b/tests/libosmo-gtlv/test_gtlv_gen/gtlv_gen_test.c
@@ -245,7 +245,7 @@ void test_enc_dec(const char *label, const struct osmo_gtlv_cfg *cfg, bool order
}
}
-int main()
+int main(int argc, char **argv)
{
ctx = talloc_named_const(NULL, 0, "test_gen_tlv");
msgb_talloc_ctx_init(ctx, 0);
diff --git a/tests/libosmo-gtlv/test_tliv/tliv_test.c b/tests/libosmo-gtlv/test_tliv/tliv_test.c
index 49ae25c..242fb1a 100644
--- a/tests/libosmo-gtlv/test_tliv/tliv_test.c
+++ b/tests/libosmo-gtlv/test_tliv/tliv_test.c
@@ -204,7 +204,7 @@ const struct osmo_gtlv_cfg osmo_tliv_cfg = {
.store_tl = tliv_store_tl,
};
-int main()
+int main(int argc, char **argv)
{
ctx = talloc_named_const(NULL, 0, "test_gen_tlv");
msgb_talloc_ctx_init(ctx, 0);
diff --git a/tests/libosmo-pfcp/pfcp_test.c b/tests/libosmo-pfcp/pfcp_test.c
index 189622e..b0f3a50 100644
--- a/tests/libosmo-pfcp/pfcp_test.c
+++ b/tests/libosmo-pfcp/pfcp_test.c
@@ -451,7 +451,7 @@ struct osmo_pfcp_msg tests[] = {
},
};
-void test_enc_dec()
+void test_enc_dec(void)
{
int i;
for (i = 0; i < ARRAY_SIZE(tests); i++) {
@@ -500,7 +500,7 @@ void test_enc_dec()
}
}
-int main()
+int main(int argc, char **argv)
{
ctx = talloc_named_const(NULL, 0, "pfcp_test");
msgb_talloc_ctx_init(ctx, 0);