diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-08-19 14:32:49 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-08-19 14:32:49 +0000 |
commit | 2a300c66611259e9bae9ebf75a88de05256f64df (patch) | |
tree | 4cf791aec0c4ada75b599af5b8fd6f34d185b673 | |
parent | 53570b15052e6fbd820f3de023542de5cb9ba1b0 (diff) |
Use cfsetispeed/cfsetospeed to set termios speed members.
-rw-r--r-- | cmd-new-session.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c index 53800eda..857163cb 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -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> @@ -213,8 +213,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"); |