diff options
author | Michael Chicoine <mc2739@gmail.com> | 2011-10-04 00:42:00 +0000 |
---|---|---|
committer | Michael Chicoine <mc2739@gmail.com> | 2011-10-04 00:42:00 +0000 |
commit | 19c7494ebeec0eb0164391013a13f047dd353b94 (patch) | |
tree | 2405dc32da396d664d63b55fc8dff15cada4f07c /uisimulator/common | |
parent | 1f5c5f2a8849f7983d0ac90667aa6745e9483570 (diff) | |
download | rockbox-19c7494ebeec0eb0164391013a13f047dd353b94.tar.gz rockbox-19c7494ebeec0eb0164391013a13f047dd353b94.tar.bz2 rockbox-19c7494ebeec0eb0164391013a13f047dd353b94.zip |
r30706 was not the right fix - thanks to amiconn for catching the error
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30707 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common')
-rw-r--r-- | uisimulator/common/io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c index 79bc59806d..02542d15e3 100644 --- a/uisimulator/common/io.c +++ b/uisimulator/common/io.c @@ -552,7 +552,7 @@ void fat_size(IF_MV2(int volume,) unsigned long* size, unsigned long* free) *size = num_clusters * secperclus / 2 * (bytespersec / 512); if (free) *free = free_clusters * secperclus / 2 * (bytespersec / 512); - } + } else #elif HAVE_STATVFS struct statvfs vfs; @@ -563,9 +563,9 @@ void fat_size(IF_MV2(int volume,) unsigned long* size, unsigned long* free) *size = vfs.f_blocks / 2 * (vfs.f_frsize / 512); if (free) *free = vfs.f_bfree / 2 * (vfs.f_frsize / 512); - } + } else #endif - else { + { if (size) *size = 0; if (free) |