From 4573e1925dc62415306a29e7fbbec6727649aef9 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 5 Jan 2024 11:55:20 +0000 Subject: Use normal exit codes when exiting the process. --- include/anope.h | 2 +- include/version.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/anope.h b/include/anope.h index 4b1e55bd5..96ded65a2 100644 --- a/include/anope.h +++ b/include/anope.h @@ -416,7 +416,7 @@ namespace Anope * initializing language support, loading modules, and loading databases. * @throws CoreException if something bad went wrong */ - extern void Init(int ac, char **av); + extern bool Init(int ac, char **av); /** Calls the save database event */ diff --git a/include/version.cpp b/include/version.cpp index 8dd24eaf3..a33d42881 100644 --- a/include/version.cpp +++ b/include/version.cpp @@ -172,19 +172,19 @@ int main(int argc, char *argv[]) std::map versions, old_versions; if (!read_version_sh(version_sh, versions)) - return -1; + return EXIT_FAILURE; std::string git_version = get_git_hash(git_dir); if (!write_build_h(buildh, git_version)) - return -1; + return EXIT_FAILURE; read_version_h(versionh, old_versions); if (versions == old_versions) - return 0; + return EXIT_SUCCESS; if (!write_version_h(versionh, versions)) - return -1; + return EXIT_FAILURE; - return 0; + return EXIT_SUCCESS; } -- cgit