Usage of EXIT_SUCCESS/FAILURE instead of hard-coded values

This commit is contained in:
Luis Díaz Más
2022-03-22 15:36:29 +01:00
parent 5b0418d136
commit c5c315b6e7
32 changed files with 224 additions and 216 deletions
+3 -3
View File
@@ -14,7 +14,7 @@ int main(int argc, char* const argv[]) try {
if (argc != 2) {
std::cout << "Usage: " << argv[0] << " file\n";
return 1;
return EXIT_FAILURE;
}
std::string file(argv[1]);
@@ -41,8 +41,8 @@ int main(int argc, char* const argv[]) try {
image->setIptcData(iptcData);
image->writeMetadata();
return 0;
return EXIT_SUCCESS;
} catch (Exiv2::Error& e) {
std::cout << "Caught Exiv2 exception '" << e << "'\n";
return -1;
return EXIT_FAILURE;
}