summaryrefslogtreecommitdiffstats
path: root/cmd-new-session.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-08-19 14:32:15 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-08-19 14:32:15 +0000
commitc41aa49059a3c5d475a55c174aa0f7b509f67534 (patch)
treeba83e474f254669ba2ae2ae8e2d8ba7ab266ae37 /cmd-new-session.c
parent3f4418d84dd8865f1bba410fc796acb53277abbf (diff)
Use cfsetispeed/cfsetospeed to set termios speed members.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r--cmd-new-session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c
index ff90e3be..bffdb2b8 100644
--- a/cmd-new-session.c
+++ b/cmd-new-session.c
@@ -212,8 +212,8 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
tio.c_oflag = TTYDEF_OFLAG;
tio.c_lflag = TTYDEF_LFLAG;
tio.c_cflag = TTYDEF_CFLAG;
- tio.c_ispeed = TTYDEF_SPEED;
- tio.c_ospeed = TTYDEF_SPEED;
+ cfsetispeed(&tio, TTYDEF_SPEED);
+ cfsetospeed(&tio, TTYDEF_SPEED);
/* Create the new session. */
idx = -1 - options_get_number(&global_s_options, "base-index");