sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit eb74f374f258540e2ca7ae0880926f76aaaa5d1a
parent 4542db4e40f68bafaa4586d89fce4567c2d2b71e
Author: Michael Forney <mforney@mforney.org>
Date:   Sun,  1 Mar 2020 16:38:14 -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.

Diffstat:
Mgetconf.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/getconf.c b/getconf.c @@ -103,4 +103,6 @@ main(int argc, char *argv[]) } eprintf("invalid variable: %s\n", argv[0]); + + return 0; }