Merge pull request #64 from philbudne/master

add return values to b.c main to make it Makefile compatible!
This commit is contained in:
philbudne
2016-03-23 10:33:20 -04:00
+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() {