0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-24 17:38:54 +02:00

construct: Minor cleanup.

This commit is contained in:
Jason Volk 2019-04-23 01:51:21 -07:00
parent ccb2d86cdc
commit 7ea6a3b39a

View file

@ -37,7 +37,7 @@ bool norun;
bool read_only; bool read_only;
bool write_avoid; bool write_avoid;
const char *execute; const char *execute;
lgetopt opts[] = lgetopt opts[]
{ {
{ "help", nullptr, lgetopt::USAGE, "Print this text" }, { "help", nullptr, lgetopt::USAGE, "Print this text" },
{ "version", &printversion, lgetopt::BOOL, "Print version and exit" }, { "version", &printversion, lgetopt::BOOL, "Print version and exit" },
@ -78,8 +78,9 @@ const char *const usererrstr
%s %s
)"}; )"};
int main(int _argc, char *const *_argv, char *const *const _envp) int
try main(int _argc, char *const *_argv, char *const *const _envp)
noexcept try
{ {
umask(077); // better safe than sorry --SRB umask(077); // better safe than sorry --SRB