diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-18 15:57:45 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-18 15:57:45 +0000 |
commit | 6a14fe48c61536241f4071b75df0bf8773c72e42 (patch) | |
tree | ff8946012e6aaf12b9d61e1a43fde58fdbb100df /nuttx/fs | |
parent | a5d2dde9a837218f211a3a7210e247474bfa3680 (diff) | |
download | px4-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.c | 2 |
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; |