summaryrefslogtreecommitdiff
path: root/nuttx/fs/fs_fdopen.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-09-28 16:50:07 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-09-28 16:50:07 -0600
commit4c24c7c4a741eaeffc76339f07076cdad7a36c56 (patch)
tree337a94000f0e849884e81e8ac2ee188bf0a38179 /nuttx/fs/fs_fdopen.c
parente735773fe5ea269b43dbecb246cec846b3a0368e (diff)
downloadpx4-nuttx-4c24c7c4a741eaeffc76339f07076cdad7a36c56.tar.gz
px4-nuttx-4c24c7c4a741eaeffc76339f07076cdad7a36c56.tar.bz2
px4-nuttx-4c24c7c4a741eaeffc76339f07076cdad7a36c56.zip
Clean up some naming: fd vs. fildes vs. filedes and filep vs filp
Diffstat (limited to 'nuttx/fs/fs_fdopen.c')
-rw-r--r--nuttx/fs/fs_fdopen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/fs/fs_fdopen.c b/nuttx/fs/fs_fdopen.c
index 58ea043c5..6544ee2b8 100644
--- a/nuttx/fs/fs_fdopen.c
+++ b/nuttx/fs/fs_fdopen.c
@@ -210,7 +210,7 @@ FAR struct file_struct *fs_fdopen(int fd, int oflags, FAR struct tcb_s *tcb)
for (i = 0 ; i < CONFIG_NFILE_STREAMS; i++)
{
stream = &slist->sl_streams[i];
- if (stream->fs_filedes < 0)
+ if (stream->fs_fd < 0)
{
/* Zero the structure */
@@ -245,7 +245,7 @@ FAR struct file_struct *fs_fdopen(int fd, int oflags, FAR struct tcb_s *tcb)
* file descriptor locks this stream.
*/
- stream->fs_filedes = fd;
+ stream->fs_fd = fd;
stream->fs_oflags = (uint16_t)oflags;
sem_post(&slist->sl_sem);