From 243945e95e8cfdef85b44e98a127496fcec8675d Mon Sep 17 00:00:00 2001 From: Benjamin Robin Date: Sun, 10 May 2020 16:49:30 +0200 Subject: [PATCH] test: Add return 0 to main() function (even it is not strictly necessary) --- src/journal/test-audit-type.c | 1 + src/libsystemd-network/test-sd-dhcp-lease.c | 1 + src/network/test-network.c | 1 + 3 files changed, 3 insertions(+) diff --git a/src/journal/test-audit-type.c b/src/journal/test-audit-type.c index 20e654b599..a8315d0633 100644 --- a/src/journal/test-audit-type.c +++ b/src/journal/test-audit-type.c @@ -22,4 +22,5 @@ static void test_audit_type(void) { int main(int argc, char **argv) { test_audit_type(); + return 0; } diff --git a/src/libsystemd-network/test-sd-dhcp-lease.c b/src/libsystemd-network/test-sd-dhcp-lease.c index 0f881809ab..534cc78564 100644 --- a/src/libsystemd-network/test-sd-dhcp-lease.c +++ b/src/libsystemd-network/test-sd-dhcp-lease.c @@ -87,4 +87,5 @@ int main(int argc, char *argv[]) { test_dhcp_lease_parse_search_domains_no_data(); test_dhcp_lease_parse_search_domains_loops(); test_dhcp_lease_parse_search_domains_wrong_len(); + return 0; } diff --git a/src/network/test-network.c b/src/network/test-network.c index e23bec7680..1600966283 100644 --- a/src/network/test-network.c +++ b/src/network/test-network.c @@ -253,4 +253,5 @@ int main(void) { test_network_get(manager, loopback); assert_se(manager_rtnl_enumerate_links(manager) >= 0); + return 0; }