No need to call editor_countfree() when displaying all the free
authorkrw <krw@openbsd.org>
Tue, 3 Jan 2023 23:27:03 +0000 (23:27 +0000)
committerkrw <krw@openbsd.org>
Tue, 3 Jan 2023 23:27:03 +0000 (23:27 +0000)
commitd9355c7d00921db37f6647b28a1cb52451ed19fb
tree9a8b23e8895819cb6c007994cce8ba12b305ae40
parent7a023eeb3f391c8c7857976fdd9c5bf43e316b98
No need to call editor_countfree() when displaying all the free
chunks in the 'r' editor command. Just add up chunks as they are
displayed. Eliminates pointless second invocation of
free_chunks().

Increment the chunk pointer rather than using iteration
variable + indexing.

No intentional functional change.
sbin/disklabel/editor.c