summaryrefslogtreecommitdiff
path: root/uisimulator/common/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/common/io.c')
-rw-r--r--uisimulator/common/io.c6
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)
552 *size = num_clusters * secperclus / 2 * (bytespersec / 512); 552 *size = num_clusters * secperclus / 2 * (bytespersec / 512);
553 if (free) 553 if (free)
554 *free = free_clusters * secperclus / 2 * (bytespersec / 512); 554 *free = free_clusters * secperclus / 2 * (bytespersec / 512);
555 } 555 } else
556#elif HAVE_STATVFS 556#elif HAVE_STATVFS
557 struct statvfs vfs; 557 struct statvfs vfs;
558 558
@@ -563,9 +563,9 @@ void fat_size(IF_MV2(int volume,) unsigned long* size, unsigned long* free)
563 *size = vfs.f_blocks / 2 * (vfs.f_frsize / 512); 563 *size = vfs.f_blocks / 2 * (vfs.f_frsize / 512);
564 if (free) 564 if (free)
565 *free = vfs.f_bfree / 2 * (vfs.f_frsize / 512); 565 *free = vfs.f_bfree / 2 * (vfs.f_frsize / 512);
566 } 566 } else
567#endif 567#endif
568 else { 568 {
569 if (size) 569 if (size)
570 *size = 0; 570 *size = 0;
571 if (free) 571 if (free)