Skip to content
Snippets Groups Projects
Commit 63d3a535 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Fixed zcompile not respecting return code range of 8bits.

parent dd0fd520
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ int main(int argc, char **argv)
int error = zone_read(origin, zonefile, outfile, semantic_checks);
if (error) {
if (error != 0) {
/* FIXME! */
// if (error < 0) {
// fprintf(stderr, "Finished with error: %s.\n",
......@@ -105,10 +105,11 @@ int main(int argc, char **argv)
// } else {
// fprintf(stderr, "Finished with %u errors.\n");
// }
return 1;
} else {
printf("Compilation successful.\n");
}
//log_close();
return error;
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment