summaryrefslogtreecommitdiff
path: root/nuttx/fs/fs_opendir.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-15 00:18:32 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-15 00:18:32 +0000
commita4155eb61d984728e938cd4b1ab0aca7b9513d78 (patch)
tree13835bea2d34fe02e0b620abf761396f330dc860 /nuttx/fs/fs_opendir.c
parentd7d4a0d765d12cc152c62a37b490702c39d76447 (diff)
downloadpx4-nuttx-a4155eb61d984728e938cd4b1ab0aca7b9513d78.tar.gz
px4-nuttx-a4155eb61d984728e938cd4b1ab0aca7b9513d78.tar.bz2
px4-nuttx-a4155eb61d984728e938cd4b1ab0aca7b9513d78.zip
Switching to C99 stdint/stdbool.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2341 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_opendir.c')
-rw-r--r--nuttx/fs/fs_opendir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/fs/fs_opendir.c b/nuttx/fs/fs_opendir.c
index ddb4611b8..3abdc1b3d 100644
--- a/nuttx/fs/fs_opendir.c
+++ b/nuttx/fs/fs_opendir.c
@@ -1,7 +1,7 @@
/****************************************************************************
* fs/fs_opendir.c
*
- * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -39,8 +39,8 @@
#include <nuttx/config.h>
-#include <sys/types.h>
#include <stdlib.h>
+#include <stdbool.h>
#include <dirent.h>
#include <string.h>
#include <assert.h>
@@ -91,7 +91,7 @@ FAR DIR *opendir(FAR const char *path)
FAR struct inode *inode = NULL;
FAR struct internal_dir_s *dir;
FAR const char *relpath;
- boolean isroot = FALSE;
+ bool isroot = false;
int ret;
/* If we are given 'nothing' then we will interpret this as
@@ -102,7 +102,7 @@ FAR DIR *opendir(FAR const char *path)
if (!path || *path == 0 || strcmp(path, "/") == 0)
{
inode = root_inode;
- isroot = TRUE;
+ isroot = true;
}
else
{