From c6cb8ae20ca4912b186522186f03b3567b785182 Mon Sep 17 00:00:00 2001 From: Tobias Heider Date: Tue, 29 Mar 2022 14:50:24 +0200 Subject: [PATCH] Fix build with older gcc. Put variable declaration in scope. --- command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command.c b/command.c index e3f8a2b..ec4bdcf 100644 --- a/command.c +++ b/command.c @@ -252,7 +252,7 @@ do_command(char c) case 'C': connect_command(); break; - case 'D': + case 'D': { #ifdef __OpenBSD__ ioctl(line_fd, TIOCCDTR, NULL); sleep(1); @@ -264,6 +264,7 @@ do_command(char c) ioctl(line_fd, TIOCMBIS, &dtrbits); #endif break; + } case 'R': start_record(); break;