Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make make(1): clean up spacing in fallback implement...



details:   https://anonhg.NetBSD.org/src/rev/a2d90c87976f
branches:  trunk
changeset: 956795:a2d90c87976f
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Nov 07 22:29:58 2020 +0000

description:
make(1): clean up spacing in fallback implementation of vsnprintf

diffstat:

 usr.bin/make/util.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r c6df00d04ed3 -r a2d90c87976f usr.bin/make/util.c
--- a/usr.bin/make/util.c       Sat Nov 07 22:28:24 2020 +0000
+++ b/usr.bin/make/util.c       Sat Nov 07 22:29:58 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.c,v 1.65 2020/11/05 17:27:16 rillig Exp $ */
+/*     $NetBSD: util.c,v 1.66 2020/11/07 22:29:58 rillig Exp $ */
 
 /*
  * Missing stuff from OS's
@@ -15,7 +15,7 @@
 
 #include "make.h"
 
-MAKE_RCSID("$NetBSD: util.c,v 1.65 2020/11/05 17:27:16 rillig Exp $");
+MAKE_RCSID("$NetBSD: util.c,v 1.66 2020/11/07 22:29:58 rillig Exp $");
 
 #if !defined(MAKE_NATIVE) && !defined(HAVE_STRERROR)
 extern int errno, sys_nerr;
@@ -371,14 +371,14 @@
         * We cast to void * to make everyone happy.
         */
        fakebuf._ptr = (void *)s;
-       fakebuf._cnt = n-1;
+       fakebuf._cnt = n - 1;
        fakebuf._file = -1;
        _doprnt(fmt, args, &fakebuf);
        fakebuf._cnt++;
        putc('\0', &fakebuf);
-       if (fakebuf._cnt<0)
+       if (fakebuf._cnt < 0)
            fakebuf._cnt = 0;
-       return n-fakebuf._cnt-1;
+       return n - fakebuf._cnt - 1;
 #else
        (void)vsprintf(s, fmt, args);
        return strlen(s);



Home | Main Index | Thread Index | Old Index