1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Use normal exit codes when exiting the process.

This commit is contained in:
Sadie Powell
2024-01-05 11:55:20 +00:00
parent a40f8e0b9d
commit 4573e1925d
4 changed files with 16 additions and 12 deletions
+5 -5
View File
@@ -172,19 +172,19 @@ int main(int argc, char *argv[])
std::map<std::string, std::string> 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;
}