Module Name: src
Committed By: uebayasi
Date: Mon Dec 15 15:49:25 UTC 2014
Modified Files:
src/usr.bin/config: mkmakefile.c
Log Message:
Revert debug code. Simplify.
To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/usr.bin/config/mkmakefile.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/config/mkmakefile.c
diff -u src/usr.bin/config/mkmakefile.c:1.36 src/usr.bin/config/mkmakefile.c:1.37
--- src/usr.bin/config/mkmakefile.c:1.36 Mon Dec 15 15:41:18 2014
+++ src/usr.bin/config/mkmakefile.c Mon Dec 15 15:49:25 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: mkmakefile.c,v 1.36 2014/12/15 15:41:18 uebayasi Exp $ */
+/* $NetBSD: mkmakefile.c,v 1.37 2014/12/15 15:49:25 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: mkmakefile.c,v 1.36 2014/12/15 15:41:18 uebayasi Exp $");
+__RCSID("$NetBSD: mkmakefile.c,v 1.37 2014/12/15 15:49:25 uebayasi Exp $");
#include <sys/param.h>
#include <ctype.h>
@@ -106,19 +106,16 @@ mkmakefile(void)
*/
(void)snprintf(buf, sizeof(buf), "conf/Makefile.kern.inc");
ifname = sourcepath(buf);
- if ((ifp = fopen(ifname, "r")) != NULL) {
- while (fgets(line, sizeof(line), ifp) != NULL) {
- fputc('+', stderr);
- if (strncmp(line, "build_kernel:", 13) == 0) {
- has_build_kernel = 1;
- break;
- }
- }
- }
- if (ifp == NULL) {
+ if ((ifp = fopen(ifname, "r")) == NULL) {
warn("cannot read %s", ifname);
goto bad2;
}
+ while (fgets(line, sizeof(line), ifp) != NULL) {
+ if (strncmp(line, "build_kernel:", 13) == 0) {
+ has_build_kernel = 1;
+ break;
+ }
+ }
(void)fclose(ifp);
/*