Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2011
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. Index: uisimulator/common/io.c
  2. ===================================================================
  3. --- uisimulator/common/io.c (revision 30706)
  4. +++ uisimulator/common/io.c (working copy)
  5. @@ -552,7 +552,7 @@
  6. *size = num_clusters * secperclus / 2 * (bytespersec / 512);
  7. if (free)
  8. *free = free_clusters * secperclus / 2 * (bytespersec / 512);
  9. - }
  10. + } else
  11. #elif HAVE_STATVFS
  12. struct statvfs vfs;
  13.  
  14. @@ -563,9 +563,9 @@
  15. *size = vfs.f_blocks / 2 * (vfs.f_frsize / 512);
  16. if (free)
  17. *free = vfs.f_bfree / 2 * (vfs.f_frsize / 512);
  18. - }
  19. + } else
  20. #endif
  21. - else {
  22. + {
  23. if (size)
  24. *size = 0;
  25. if (free)
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement