Module Name:    src
Committed By:   rillig
Date:           Sat Nov  7 21:26:44 UTC 2020

Modified Files:
        src/usr.bin/make: meta.c

Log Message:
make(1): fix inconsistent indentation after #ifdef

Combining #ifdef with regular if-then-else calls for trouble.


To generate a diff of this commit:
cvs rdiff -u -r1.139 -r1.140 src/usr.bin/make/meta.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/meta.c
diff -u src/usr.bin/make/meta.c:1.139 src/usr.bin/make/meta.c:1.140
--- src/usr.bin/make/meta.c:1.139	Sat Nov  7 10:16:19 2020
+++ src/usr.bin/make/meta.c	Sat Nov  7 21:26:43 2020
@@ -1,4 +1,4 @@
-/*      $NetBSD: meta.c,v 1.139 2020/11/07 10:16:19 rillig Exp $ */
+/*      $NetBSD: meta.c,v 1.140 2020/11/07 21:26:43 rillig Exp $ */
 
 /*
  * Implement 'meta' mode.
@@ -860,9 +860,11 @@ meta_cmd_finish(void *pbmp)
 	    error = x;
 	pbm->mon_fd = -1;
 	pbm->filemon = NULL;
-    } else
+	return error;
+    }
 #endif
-	fprintf(pbm->mfp, "\n");	/* ensure end with newline */
+
+    fprintf(pbm->mfp, "\n");	/* ensure end with newline */
     return error;
 }
 

Reply via email to