From 19c7494ebeec0eb0164391013a13f047dd353b94 Mon Sep 17 00:00:00 2001 From: Michael Chicoine Date: Tue, 4 Oct 2011 00:42:00 +0000 Subject: 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 --- uisimulator/common/io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'uisimulator/common') 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) -- cgit