Explicitly return EXIT_FAILURE

This commit is contained in:
Antonio SJ Musumeci
2026-03-02 01:09:16 -05:00
committed by trapexit
parent f69c31fd77
commit 3d50d4a52f
+3 -3
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();