From eb74f374f258540e2ca7ae0880926f76aaaa5d1a Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 1 Mar 2020 16:38:14 -0800 Subject: [PATCH] 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. --- getconf.c | 2 ++ 1 file changed, 2 insertions(+) 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; }