mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Reduce variable scopes
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user