mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user