aboutsummaryrefslogtreecommitdiff
path: root/contrib/elftoolchain/strings
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2018-11-21 22:37:49 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2018-11-21 22:37:49 +0000
commit248b5d08b39766362cac1c413fb99ad5e57dbbe7 (patch)
tree2db822d66600eff9e5d226dcf3883a8022b0570c /contrib/elftoolchain/strings
parentf218ac5087c7697321d3866d68c037cc88b0b005 (diff)
downloadsrc-248b5d08b39766362cac1c413fb99ad5e57dbbe7.tar.gz
src-248b5d08b39766362cac1c413fb99ad5e57dbbe7.zip
strings: unbreak the build after r340746
Discussed with: oshogbo Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=340750
Diffstat (limited to 'contrib/elftoolchain/strings')
-rw-r--r--contrib/elftoolchain/strings/strings.c4
1 files 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;