1
0
mirror of git://git.suckless.org/sbase synced 2024-12-22 07:01:15 +00:00

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.
This commit is contained in:
Michael Forney 2020-03-01 16:38:14 -08:00
parent 4542db4e40
commit eb74f374f2

View File

@ -103,4 +103,6 @@ main(int argc, char *argv[])
}
eprintf("invalid variable: %s\n", argv[0]);
return 0;
}