1
0
mirror of https://github.com/DoctorWkt/pdp7-unix.git synced 2026-05-05 15:43:39 +00:00

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

View File

@@ -60,12 +60,12 @@ main(int argc, char **argv) {
if (argc > 2) {
if ((fout = creat(argv[2], 0777))<0) {
error('fo');
return;
return 1;
}
}
if ((fin = open(argv[1],0))<0) {
error('fi');
return;
return 1;
}
}
@@ -74,6 +74,7 @@ main(int argc, char **argv) {
extdef();
blkend();
}
return 0;
}
int *lookup() {