summaryrefslogtreecommitdiff
path: root/nuttx/fs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-18 15:57:45 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-18 15:57:45 +0000
commit6a14fe48c61536241f4071b75df0bf8773c72e42 (patch)
treeff8946012e6aaf12b9d61e1a43fde58fdbb100df /nuttx/fs
parenta5d2dde9a837218f211a3a7210e247474bfa3680 (diff)
downloadpx4-nuttx-6a14fe48c61536241f4071b75df0bf8773c72e42.tar.gz
px4-nuttx-6a14fe48c61536241f4071b75df0bf8773c72e42.tar.bz2
px4-nuttx-6a14fe48c61536241f4071b75df0bf8773c72e42.zip
Disable line buffering if the file is opened in binary mode; Also fix a couple of fopen/fdopen bugs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4630 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs')
-rw-r--r--nuttx/fs/fs_fdopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/fs_fdopen.c b/nuttx/fs/fs_fdopen.c
index 4d3f79894..9ee543a88 100644
--- a/nuttx/fs/fs_fdopen.c
+++ b/nuttx/fs/fs_fdopen.c
@@ -237,7 +237,7 @@ FAR struct file_struct *fs_fdopen(int fd, int oflags, FAR _TCB *tcb)
*/
stream->fs_filedes = fd;
- stream->fs_oflags = oflags;
+ stream->fs_oflags = (uint16_t)oflags;
sem_post(&slist->sl_sem);
return stream;