diff options
| author | [email protected] <[email protected]> | 2011-03-12 00:17:41 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-03-12 00:17:41 +0000 |
| commit | 24dfbe437de3b96e78298206e6e62c1dc975c4f8 (patch) | |
| tree | df3b9aeebeabacf5b4fb24a8617e7ad1615a6358 /components/dfs/src | |
| parent | c8cb831c93b0fb7a2785fa0e7b864b3e110ab131 (diff) | |
remove dfs_config.h file and fix filesystem lookup issue.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1332 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/dfs/src')
| -rw-r--r-- | components/dfs/src/dfs.c | 1 | ||||
| -rw-r--r-- | components/dfs/src/dfs_fs.c | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c index 5888b8ad0b..18eb41bf10 100644 --- a/components/dfs/src/dfs.c +++ b/components/dfs/src/dfs.c @@ -15,7 +15,6 @@ #include <dfs.h>
#include <dfs_fs.h>
-#include <dfs_config.h>
#include <dfs_file.h>
#define NO_WORKING_DIR "system does not support working dir\n"
diff --git a/components/dfs/src/dfs_fs.c b/components/dfs/src/dfs_fs.c index 2d1959c945..3a04a05f28 100644 --- a/components/dfs/src/dfs_fs.c +++ b/components/dfs/src/dfs_fs.c @@ -11,6 +11,7 @@ * Date Author Notes
* 2005-02-22 Bernard The first version.
* 2010-06-30 Bernard Optimize for RT-Thread RTOS
+ * 2011-03-12 Bernard fix the filesystem lookup issue.
*/
#include <dfs_fs.h>
#include <dfs_file.h>
@@ -86,7 +87,7 @@ struct dfs_filesystem* dfs_filesystem_lookup(const char *path) dfs_lock();
/* lookup it in the filesystem table */
- for (index = 0; index < DFS_FILESYSTEMS_MAX + 1; index++)
+ for (index = 0; index < DFS_FILESYSTEMS_MAX; index++)
{
if (filesystem_table[index].path == RT_NULL) continue;
else
|
