]> granicus.if.org Git - zfs/commit
Prefer `for (;;)` to `while (TRUE)`
authorRyan Moeller <ryan@freqlabs.com>
Wed, 28 Aug 2019 17:38:40 +0000 (13:38 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 28 Aug 2019 17:38:40 +0000 (10:38 -0700)
commit9c9dcd6e04ae7a868efafe4447bdbe67ae25a6da
tree6fa680a52447ead225df3b13ba4f7cc8e861f74b
parente6203d288a787f7196bdc206edfc9148f9a58780
Prefer `for (;;)` to `while (TRUE)`

Defining a special constant to make an infinite loop is excessive,
especially when the name clashes with symbols commonly defined on
some platforms (ie FreeBSD).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: John Kennedy <john.kennedy@delphix.com
Signed-off-by: Ryan Moeller <ryan@ixsystems.com>
Closes #9219
tests/zfs-tests/cmd/rm_lnkcnt_zero_file/rm_lnkcnt_zero_file.c