diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-09-10 19:09:47 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-09-10 19:09:47 +0000 |
commit | 3042ddd54cc2c3cfa746571f648c3acd42e80226 (patch) | |
tree | 4e6a8af26e3db319c7fc0d27bdff8a7a5a3ff05a /nuttx/fs | |
parent | 3701acf1dde1aeac6252f0542c58eaee53de1b75 (diff) | |
download | px4-nuttx-3042ddd54cc2c3cfa746571f648c3acd42e80226.tar.gz px4-nuttx-3042ddd54cc2c3cfa746571f648c3acd42e80226.tar.bz2 px4-nuttx-3042ddd54cc2c3cfa746571f648c3acd42e80226.zip |
cosmetic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@901 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs')
-rw-r--r-- | nuttx/fs/fat/fs_fat32.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/fs/fat/fs_fat32.c b/nuttx/fs/fat/fs_fat32.c index 226008f43..1f8acd4fd 100644 --- a/nuttx/fs/fat/fs_fat32.c +++ b/nuttx/fs/fat/fs_fat32.c @@ -1299,11 +1299,11 @@ errout_with_semaphore: static int fat_readdir(struct inode *mountpt, struct internal_dir_s *dir) { struct fat_mountpt_s *fs; - unsigned int dirindex; - ubyte *direntry; - ubyte ch; - ubyte attribute; - int ret = OK; + unsigned int dirindex; + ubyte *direntry; + ubyte ch; + ubyte attribute; + int ret = OK; /* Sanity checks */ @@ -1628,7 +1628,7 @@ static int fat_statfs(struct inode *mountpt, struct statfs *buf) /* Everything else follows in units of clusters */ buf->f_blocks = fs->fs_nclusters; /* Total data blocks in the file system */ - ret = fat_nfreeclusters(fs, &buf->f_bfree); /* Free blocks in the file system */ + buf->f_bfree = fat_nfreeclusters(fs, &buf->f_bfree); /* Free blocks in the file system */ buf->f_bavail = buf->f_bfree; /* Free blocks avail to non-superuser */ buf->f_namelen = (8+1+3); /* Maximum length of filenames */ |