diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-03-25 22:49:33 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-03-26 12:08:08 +0200 |
commit | 6a318e48a67a8f9834e14c960bd4f5b6e295b2dc (patch) | |
tree | bc7803e9200604881fc9059ba3d5e23da8d0e563 /src/test/util_tests.cpp | |
parent | 7466a26cab5d66665991433947964a638f5b957e (diff) |
Reduce variable scopes
Diffstat (limited to 'src/test/util_tests.cpp')
-rw-r--r-- | src/test/util_tests.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp index b6f3cbe2b7..b0c5c53016 100644 --- a/src/test/util_tests.cpp +++ b/src/test/util_tests.cpp @@ -704,9 +704,8 @@ static constexpr char ExitCommand = 'X'; static void TestOtherProcess(fs::path dirname, std::string lockname, int fd) { char ch; - int rv; while (true) { - rv = read(fd, &ch, 1); // Wait for command + int rv = read(fd, &ch, 1); // Wait for command assert(rv == 1); switch(ch) { case LockCommand: |