The termios c_speed field cannot be 'const'

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5234 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-10-20 13:14:04 +00:00
parent 82dc9393de
commit 3cea8822cf
18 changed files with 21 additions and 68 deletions
+1 -6
View File
@@ -110,12 +110,7 @@
int cfsetspeed(FAR struct termios *termiosp, speed_t speed)
{
FAR speed_t *speedp;
DEBUGASSERT(termiosp);
speedp = (FAR speed_t *)&termiosp->c_speed;
*speedp = speed;
termiosp->c_speed = speed;
return OK;
}