From 964a7b2e167d81b69989152b1c9290f60faecaca Mon Sep 17 00:00:00 2001 From: mjg Date: Wed, 21 Nov 2018 22:37:49 +0000 Subject: [PATCH] strings: unbreak the build after r340746 Discussed with: oshogbo Sponsored by: The FreeBSD Foundation --- contrib/elftoolchain/strings/strings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/elftoolchain/strings/strings.c b/contrib/elftoolchain/strings/strings.c index 5ca01beadc2f..cea2b0656de8 100644 --- a/contrib/elftoolchain/strings/strings.c +++ b/contrib/elftoolchain/strings/strings.c @@ -350,7 +350,7 @@ find_strings(const char *name, off_t offset, off_t size) (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 size) } printf("%s", obuf); - while (true) { + for (;;) { if ((offset + size) && (cur_off >= offset + size)) break;