Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 3rd, 2011  |  syntax: None  |  size: 0.72 KB  |  views: 68  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.