add return values to main to make it Makefile compatible!

This commit is contained in:
Phil Budne
2016-03-23 10:31:57 -04:00
parent 945fa20bae
commit 1e19b29abd
+3 -2
View File
@@ -60,12 +60,12 @@ main(int argc, char **argv) {
if (argc > 2) { if (argc > 2) {
if ((fout = creat(argv[2], 0777))<0) { if ((fout = creat(argv[2], 0777))<0) {
error('fo'); error('fo');
return; return 1;
} }
} }
if ((fin = open(argv[1],0))<0) { if ((fin = open(argv[1],0))<0) {
error('fi'); error('fi');
return; return 1;
} }
} }
@@ -74,6 +74,7 @@ main(int argc, char **argv) {
extdef(); extdef();
blkend(); blkend();
} }
return 0;
} }
int *lookup() { int *lookup() {