/* Set the line speed of a terminal line. */ static int tty_set_speed(struct termios *tty, const char *speed) { int code; if ((code = tty_find_speed(speed)) < 0) return code; tty->c_cflag &= ~CBAUD; tty->c_cflag |= code; return 0; }
/* Set the line speed of a terminal line. */ static int tty_set_speed(struct termios *tty, const char *speed) { int code; if (opt_d) printf("slattach: tty_set_speed: %s\n", speed); if ((code = tty_find_speed(speed)) < 0) return(code); tty->c_cflag &= ~CBAUD; tty->c_cflag |= code; return(0); }