svn commit: r340750 - head/contrib/elftoolchain/strings

Mateusz Guzik mjg at FreeBSD.org
Wed Nov 21 22:37:50 UTC 2018


Author: mjg
Date: Wed Nov 21 22:37:49 2018
New Revision: 340750
URL: https://svnweb.freebsd.org/changeset/base/340750

Log:
  strings: unbreak the build after r340746
  
  Discussed with:	oshogbo
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/contrib/elftoolchain/strings/strings.c

Modified: head/contrib/elftoolchain/strings/strings.c
==============================================================================
--- head/contrib/elftoolchain/strings/strings.c	Wed Nov 21 22:25:05 2018	(r340749)
+++ head/contrib/elftoolchain/strings/strings.c	Wed Nov 21 22:37:49 2018	(r340750)
@@ -350,7 +350,7 @@ find_strings(const char *name, off_t offset, off_t siz
 	(void)fseeko(stdin, offset, SEEK_SET);
 	cur_off = offset;
 	start_off = 0;
-	while (true) {
+	for (;;) {
 		if ((offset + size) && (cur_off >= offset + size))
 			break;
 		start_off = cur_off;
@@ -395,7 +395,7 @@ find_strings(const char *name, off_t offset, off_t siz
 			}
 			printf("%s", obuf);
 
-			while (true) {
+			for (;;) {
 				if ((offset + size) &&
 				    (cur_off >= offset + size))
 					break;


More information about the svn-src-head mailing list