summaryrefslogtreecommitdiff
path: root/nuttx/lib
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-20 13:14:04 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-20 13:14:04 +0000
commite67fe7912645818ff9f4f19481b64fe363f5d357 (patch)
treebb4458f7418421ec9bf27c39b16571172099b2b3 /nuttx/lib
parentf80429b503882bda76e31041cb299352afde2686 (diff)
downloadpx4-nuttx-e67fe7912645818ff9f4f19481b64fe363f5d357.tar.gz
px4-nuttx-e67fe7912645818ff9f4f19481b64fe363f5d357.tar.bz2
px4-nuttx-e67fe7912645818ff9f4f19481b64fe363f5d357.zip
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
Diffstat (limited to 'nuttx/lib')
-rw-r--r--nuttx/lib/termios/lib_cfsetspeed.c7
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;
}