| 86 | }; |
| 87 | |
| 88 | static int |
| 89 | ttcompatspeedtab(int speed, struct speedtab *table) |
| 90 | { |
| 91 | if (speed == 0) |
| 92 | return (0); /* hangup */ |
| 93 | for ( ; table->sp_speed > 0; table++) |
| 94 | if (table->sp_speed <= speed) /* nearest one, rounded down */ |
| 95 | return (table->sp_code); |
| 96 | return (1); /* 50, min and not hangup */ |
| 97 | } |
| 98 | |
| 99 | static int |
| 100 | ttsetcompat(struct tty *tp, u_long *com, caddr_t data, struct termios *term) |
no outgoing calls
no test coverage detected