summaryrefslogtreecommitdiff
path: root/ttymodes.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-04-16 11:18:38 +1000
committerDamien Miller <djm@mindrot.org>2000-04-16 11:18:38 +1000
commit4af51306d9a51459a5bef922df1037f876ae51fe (patch)
tree09ecfc215fce82345a3259f8a0f384b9a67906f0 /ttymodes.c
parent5d1705ecf9bd3216dc99a84242bcdf2e7297d307 (diff)
- OpenBSD CVS updates.
[ssh.1 ssh.c] - ssh -2 [auth.c channels.c clientloop.c packet.c packet.h serverloop.c] [session.c sshconnect.c] - check payload for (illegal) extra data [ALL] - whitespace cleanup
Diffstat (limited to 'ttymodes.c')
-rw-r--r--ttymodes.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ttymodes.c b/ttymodes.c
index fffc6d5bf..647c66035 100644
--- a/ttymodes.c
+++ b/ttymodes.c
@@ -10,7 +10,7 @@
10 */ 10 */
11 11
12#include "includes.h" 12#include "includes.h"
13RCSID("$Id: ttymodes.c,v 1.3 1999/11/25 00:54:59 damien Exp $"); 13RCSID("$Id: ttymodes.c,v 1.4 2000/04/16 01:18:49 damien Exp $");
14 14
15#include "packet.h" 15#include "packet.h"
16#include "ssh.h" 16#include "ssh.h"
@@ -23,7 +23,7 @@ RCSID("$Id: ttymodes.c,v 1.3 1999/11/25 00:54:59 damien Exp $");
23 * Converts POSIX speed_t to a baud rate. The values of the 23 * Converts POSIX speed_t to a baud rate. The values of the
24 * constants for speed_t are not themselves portable. 24 * constants for speed_t are not themselves portable.
25 */ 25 */
26static int 26static int
27speed_to_baud(speed_t speed) 27speed_to_baud(speed_t speed)
28{ 28{
29 switch (speed) { 29 switch (speed) {
@@ -112,7 +112,7 @@ speed_to_baud(speed_t speed)
112/* 112/*
113 * Converts a numeric baud rate to a POSIX speed_t. 113 * Converts a numeric baud rate to a POSIX speed_t.
114 */ 114 */
115static speed_t 115static speed_t
116baud_to_speed(int baud) 116baud_to_speed(int baud)
117{ 117{
118 switch (baud) { 118 switch (baud) {
@@ -203,7 +203,7 @@ baud_to_speed(int baud)
203 * in a portable manner, and appends the modes to a packet 203 * in a portable manner, and appends the modes to a packet
204 * being constructed. 204 * being constructed.
205 */ 205 */
206void 206void
207tty_make_modes(int fd) 207tty_make_modes(int fd)
208{ 208{
209 struct termios tio; 209 struct termios tio;
@@ -247,7 +247,7 @@ tty_make_modes(int fd)
247 * Decodes terminal modes for the terminal referenced by fd in a portable 247 * Decodes terminal modes for the terminal referenced by fd in a portable
248 * manner from a packet being read. 248 * manner from a packet being read.
249 */ 249 */
250void 250void
251tty_parse_modes(int fd, int *n_bytes_ptr) 251tty_parse_modes(int fd, int *n_bytes_ptr)
252{ 252{
253 struct termios tio; 253 struct termios tio;