Skip to content

Commit

Permalink
Fix build with older gcc. Put variable declaration in scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobhe committed Mar 29, 2022
1 parent 1d6a290 commit c6cb8ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -264,6 +264,7 @@ do_command(char c)
ioctl(line_fd, TIOCMBIS, &dtrbits);
#endif
break;
}
case 'R':
start_record();
break;
Expand Down

0 comments on commit c6cb8ae

Please sign in to comment.