svn commit: r326575 - in head/usr.bin: . sponge
Cy Schubert
cy at FreeBSD.org
Tue Dec 5 20:06:55 UTC 2017
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);
More information about the svn-src-head
mailing list