summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-07-10 10:08:46 +0000
committer[email protected] <[email protected]>2012-07-10 10:08:46 +0000
commit128a28324572c873d2eb6020dd540b903243fcda (patch)
treed080fb403ea25fb366a7672c234f71fdefe06f6d /components
parent291c4336d7d783721b1f06d59f8229b50c0a4268 (diff)
fixed a spelling error and use RT_NULL instead of NULL in DFS
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2215 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
-rw-r--r--components/dfs/src/dfs_file.c2
-rw-r--r--components/dfs/src/dfs_fs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c
index a9e4241ac2..b18bdfaadd 100644
--- a/components/dfs/src/dfs_file.c
+++ b/components/dfs/src/dfs_file.c
@@ -313,7 +313,7 @@ int dfs_file_flush(struct dfs_fd *fd)
* this function will seek the offset for specified file descriptor.
*
* @param fd the file descriptor.
- * @param offset the offset to be seeked.
+ * @param offset the offset to be sought.
*
* @return the current position after seek.
*/
diff --git a/components/dfs/src/dfs_fs.c b/components/dfs/src/dfs_fs.c
index e8110e408f..7d88fac67a 100644
--- a/components/dfs/src/dfs_fs.c
+++ b/components/dfs/src/dfs_fs.c
@@ -436,7 +436,7 @@ int dfs_statfs(const char *path, struct statfs *buffer)
struct dfs_filesystem *fs;
fs = dfs_filesystem_lookup(path);
- if (fs != NULL)
+ if (fs != RT_NULL)
{
if (fs->ops->statfs != RT_NULL)
return fs->ops->statfs(fs, buffer);