Module Name: src
Committed By: rillig
Date: Sat Nov 7 22:29:58 UTC 2020
Modified Files:
src/usr.bin/make: util.c
Log Message:
make(1): clean up spacing in fallback implementation of vsnprintf
To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/usr.bin/make/util.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/util.c
diff -u src/usr.bin/make/util.c:1.65 src/usr.bin/make/util.c:1.66
--- src/usr.bin/make/util.c:1.65 Thu Nov 5 17:27:16 2020
+++ src/usr.bin/make/util.c Sat Nov 7 22:29:58 2020
@@ -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 @@ vsnprintf(char *s, size_t n, const char
* 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);