diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-20 13:14:04 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-20 13:14:04 +0000 |
commit | 860e5f0524a79a3fc7c776d925d1e73066b7f78d (patch) | |
tree | bb4458f7418421ec9bf27c39b16571172099b2b3 /nuttx/lib | |
parent | 8345d911e0e4f6e6dcbc4728325fb7ef0b8dadd8 (diff) | |
download | px4-firmware-860e5f0524a79a3fc7c776d925d1e73066b7f78d.tar.gz px4-firmware-860e5f0524a79a3fc7c776d925d1e73066b7f78d.tar.bz2 px4-firmware-860e5f0524a79a3fc7c776d925d1e73066b7f78d.zip |
The termios c_speed field cannot be 'const'
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5234 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r-- | nuttx/lib/termios/lib_cfsetspeed.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/nuttx/lib/termios/lib_cfsetspeed.c b/nuttx/lib/termios/lib_cfsetspeed.c index bf9e66064..714562ff5 100644 --- a/nuttx/lib/termios/lib_cfsetspeed.c +++ b/nuttx/lib/termios/lib_cfsetspeed.c @@ -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; } |