Exit with EXIT_SUCCESS/EXIT_FAILURE instead of 0 and 1

Fixed for consistency purposes.
This commit is contained in:
sin
2013-10-07 16:41:55 +01:00
parent ac033652fe
commit b5a511dacf
52 changed files with 67 additions and 60 deletions

4
comm.c
View File

@@ -63,7 +63,7 @@ main(int argc, char *argv[])
printline((2-dif) % 3, lines[MAX(0, dif)]);
}
return 0;
return EXIT_SUCCESS;
}
void
@@ -101,6 +101,6 @@ finish(int pos, FILE *f, char *name)
while(nextline(buf, sizeof(buf), f, name))
printline(pos, buf);
exit(1);
exit(EXIT_FAILURE);
}