Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/config Make the outputted INCLUDES directives a bit...



details:   https://anonhg.NetBSD.org/src/rev/688134fdfb3e
branches:  trunk
changeset: 474520:688134fdfb3e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jul 09 18:45:31 1999 +0000

description:
Make the outputted INCLUDES directives a bit more cosmetically appealing.

diffstat:

 usr.sbin/config/mkmakefile.c |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (28 lines):

diff -r 154e3ccd738e -r 688134fdfb3e usr.sbin/config/mkmakefile.c
--- a/usr.sbin/config/mkmakefile.c      Fri Jul 09 16:13:53 1999 +0000
+++ b/usr.sbin/config/mkmakefile.c      Fri Jul 09 18:45:31 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkmakefile.c,v 1.41 1999/07/09 09:53:01 mrg Exp $      */
+/*     $NetBSD: mkmakefile.c,v 1.42 1999/07/09 18:45:31 thorpej Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -475,16 +475,11 @@
        FILE *fp;
 {
        struct prefix *pf;
-       int done = 0;
 
        for (pf = allprefixes; pf != NULL; pf = pf->pf_next) {
-               if (done == 0) {
-                       done = 1;
-                       fprintf(fp, "INCLUDES+=\t");
-               }
-               fprintf(fp, " -I$S/%s", pf->pf_prefix);
+               if (fprintf(fp, "INCLUDES+=\t-I$S/%s\n", pf->pf_prefix) < 0)
+                       return (1);
        }
-       putc('\n', fp);
 
        return (0);
 }



Home | Main Index | Thread Index | Old Index