summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Robin <dev@benjarobin.fr>2020-05-10 16:49:30 +0200
committerBenjamin Robin <dev@benjarobin.fr>2020-05-13 22:56:42 +0200
commit243945e95e8cfdef85b44e98a127496fcec8675d (patch)
treef4864bd995fe3eacbae6a9dba3e3360ac59b3e77
parentsystemctl: Check clean_or_freeze_unit(): Add assert if unknown method (diff)
downloadsystemd-243945e95e8cfdef85b44e98a127496fcec8675d.tar.xz
systemd-243945e95e8cfdef85b44e98a127496fcec8675d.zip
test: Add return 0 to main() function (even it is not strictly necessary)
-rw-r--r--src/journal/test-audit-type.c1
-rw-r--r--src/libsystemd-network/test-sd-dhcp-lease.c1
-rw-r--r--src/network/test-network.c1
3 files changed, 3 insertions, 0 deletions
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;
}