commit eb74f374f258540e2ca7ae0880926f76aaaa5d1a
Author: Michael Forney <[email protected]>
AuthorDate: Sun Mar 1 16:38:14 2020 -0800
Commit: Michael Forney <[email protected]>
CommitDate: Sun Mar 1 16:40:01 2020 -0800
getconf: Add an explicit return at the end of main
ISO C does not require that main() have an explicit return value
(if the end of the main function is reached, it is as if it returned
0). However, when built as sbase-box, the main function is turned
into getconf_main, which does not have the same special treatment.
diff --git a/getconf.c b/getconf.c
index fdebc58..ca3e186 100644
--- a/getconf.c
+++ b/getconf.c
@@ -103,4 +103,6 @@ main(int argc, char *argv[])
}
eprintf("invalid variable: %s\n", argv[0]);
+
+ return 0;
}