We're using both exit(1) & exit(EXIT_FAILURE), settle for one, same
for success.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
count = ascii85_decode(line+1, &data, line[0] == ':');
if (count == 0) {
fprintf(stderr, "ASCII85 decode failed.\n");
- exit(1);
+ exit(EXIT_FAILURE);
}
if (strcmp(buffer_name, "user") == 0) {
data = realloc(data, data_size * sizeof (uint32_t));
if (data == NULL) {
fprintf(stderr, "Out of memory.\n");
- exit(1);
+ exit(EXIT_FAILURE);
}
}
if (help || argc == 1) {
print_help(argv[0], stderr);
- exit(0);
+ exit(EXIT_SUCCESS);
}
if (optind >= argc) {
}
} else {
read_data_file(stdin);
- exit(0);
+ exit(EXIT_SUCCESS);
}
} else {
path = argv[optind];
if (error != 0) {
fprintf(stderr, "Error opening %s: %s\n",
path, strerror(errno));
- exit(1);
+ exit(EXIT_FAILURE);
}
}