1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Use cfsetispeed/cfsetospeed to set termios speed members.

This commit is contained in:
Nicholas Marriott 2009-08-19 14:32:49 +00:00
parent 53570b1505
commit 2a300c6661

View File

@ -1,4 +1,4 @@
/* $Id: cmd-new-session.c,v 1.55 2009-08-16 19:16:27 tcunha Exp $ */ /* $Id: cmd-new-session.c,v 1.56 2009-08-19 14:32:49 nicm Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -213,8 +213,8 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
tio.c_oflag = TTYDEF_OFLAG; tio.c_oflag = TTYDEF_OFLAG;
tio.c_lflag = TTYDEF_LFLAG; tio.c_lflag = TTYDEF_LFLAG;
tio.c_cflag = TTYDEF_CFLAG; tio.c_cflag = TTYDEF_CFLAG;
tio.c_ispeed = TTYDEF_SPEED; cfsetispeed(&tio, TTYDEF_SPEED);
tio.c_ospeed = TTYDEF_SPEED; cfsetospeed(&tio, TTYDEF_SPEED);
/* Create the new session. */ /* Create the new session. */
idx = -1 - options_get_number(&global_s_options, "base-index"); idx = -1 - options_get_number(&global_s_options, "base-index");