From: Yu Watanabe Date: Thu, 26 Nov 2020 23:38:12 +0000 (+0900) Subject: test: use for(;;) instead of while(true) X-Git-Tag: v248-rc1~627^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2940b128264f70923e5832a67dede8ed5ef883a5;p=thirdparty%2Fsystemd.git test: use for(;;) instead of while(true) --- diff --git a/src/oom/test-oomd-util.c b/src/oom/test-oomd-util.c index 5df57107f9c..8143408902b 100644 --- a/src/oom/test-oomd-util.c +++ b/src/oom/test-oomd-util.c @@ -23,7 +23,7 @@ static int fork_and_sleep(unsigned sleep_min) { if (pid == 0) { timeout = sleep_min * USEC_PER_MINUTE; ts = now(CLOCK_MONOTONIC); - while (true) { + for (;;) { n = now(CLOCK_MONOTONIC); if (ts + timeout < n) { log_error("Child timed out waiting to be killed");