Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Dec 2017 20:06:53 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326575 - in head/usr.bin: . sponge
Message-ID:  <201712052006.vB5K6rgL084333@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Tue Dec  5 20:06:53 2017
New Revision: 326575
URL: https://svnweb.freebsd.org/changeset/base/326575

Log:
  Fix build after r326554; reconnect sponge to build again.

Modified:
  head/usr.bin/Makefile
  head/usr.bin/sponge/sponge.c

Modified: head/usr.bin/Makefile
==============================================================================
--- head/usr.bin/Makefile	Tue Dec  5 19:55:53 2017	(r326574)
+++ head/usr.bin/Makefile	Tue Dec  5 20:06:53 2017	(r326575)
@@ -148,6 +148,7 @@ SUBDIR=	alias \
 	soelim \
 	sort \
 	split \
+	sponge \
 	stat \
 	stdbuf \
 	strings \

Modified: head/usr.bin/sponge/sponge.c
==============================================================================
--- head/usr.bin/sponge/sponge.c	Tue Dec  5 19:55:53 2017	(r326574)
+++ head/usr.bin/sponge/sponge.c	Tue Dec  5 20:06:53 2017	(r326575)
@@ -172,7 +172,8 @@ main(int argc, char* argv[])
 	bufremain = bufcnt;
 
 	while (bufremain > 0) {
-		whichbuf = (bufremain < maxiovec) ? bufremain : maxiovec;
+		whichbuf = bufremain < (unsigned long) maxiovec
+			? bufremain : maxiovec;
 		bufremain -= whichbuf;
 
 		i = writev(fd, iov, whichbuf);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712052006.vB5K6rgL084333>