* fhandler_serial.cc (fhandler_serial::ioctl): Reformat. Set errno
appropriately. Exit from the bottom. Correctly deal with third argument for TCFLSH. (Suggested by Sergey Okhapkin)
This commit is contained in:
@@ -52,5 +52,7 @@ ioctl (int fd, int cmd, ...)
|
||||
return tcsetattr (fd, TCSAFLUSH, (struct termios *) argp);
|
||||
}
|
||||
|
||||
return cfd->ioctl (cmd, argp);
|
||||
int res = cfd->ioctl (cmd, argp);
|
||||
debug_printf ("returning %d", res);
|
||||
return res;
|
||||
}
|
||||
|
Reference in New Issue
Block a user