diff options
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -117,7 +117,7 @@ int nonblock_recvline(read_buffer_t* buffer, int fd, cmd_t** cmd_q, client_t* cl return ret; } -int setup_tty(int fd) +int setup_tty(int fd, speed_t speed) { struct termios tmio; @@ -127,13 +127,13 @@ int setup_tty(int fd) return ret; } - ret = cfsetospeed(&tmio, B9600); + ret = cfsetospeed(&tmio, speed); if(ret) { log_printf(ERROR, "Error on cfsetospeed(): %s", strerror(errno)); return ret; } - ret = cfsetispeed(&tmio, B9600); + ret = cfsetispeed(&tmio, speed); if(ret) { log_printf(ERROR, "Error on cfsetispeed(): %s", strerror(errno)); return ret; |