Explicitly return EXIT_FAILURE

This commit is contained in:
Antonio SJ Musumeci 2026-02-23 08:09:55 -06:00
parent 507c9eb340
commit 46d04da4f8

View file

@ -289,7 +289,7 @@ _warn_if_not_root()
if(uid == 0)
return;
constexpr const char s[] =
constexpr const char *s =
"mergerfs is not running as root"
" and may not work correctly";
fmt::println(stderr,"* WARNING: {}",s);
@ -330,7 +330,7 @@ _main(int argc_,
fmt::println(stderr,"mergerfs: ERROR - {}",s);
}
return 1;
return EXIT_FAILURE;
}
if(cfg.branches_mount_timeout > 0)
@ -339,7 +339,7 @@ _main(int argc_,
failure = ::_wait_for_mount();
if(failure)
return 1;
return EXIT_FAILURE;
}
::_warn_if_not_root();