From 2a300c66611259e9bae9ebf75a88de05256f64df Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 19 Aug 2009 14:32:49 +0000 Subject: [PATCH] Use cfsetispeed/cfsetospeed to set termios speed members. --- cmd-new-session.c | 6 +++--- 1 file 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 @@ -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");