commit c248dd4

chld  ·  2026-04-14 01:12:39 +0000 UTC
parent 661e133
clean up code
1 files changed,  +2, -7
+2, -7
 1@@ -248,12 +248,7 @@ main(int argc, char **argv)
 2 	}
 3 	src = readfile(path);
 4 	if (!src) {
 5-	  /*
 6-		fprintf(stderr, "could not read %s\n", path);
 7-		return 1;
 8-	  */
 9-	  /* maybe the makefile is named differently?
10-	   * this is a little ignorant. i wont tell you why */
11+	  /* iterate through possible makefile names */
12 
13 	  char* mks[]={
14 	    "makefile",
15@@ -271,7 +266,7 @@ main(int argc, char **argv)
16 		if(mks[mk+1]==NULL && !src)
17 		  {
18 		    fprintf(stderr, "could not find a makefile\n");
19-		    exit(1);
20+		    return 1;
21 		  }
22 	      }
23 	}