patch-lib_ext2fs_unix_io_c 783 B

1234567891011121314151617181920212223242526
  1. --- e2fsprogs-1.42.8.orig/lib/ext2fs/unix_io.c 2013-04-22 01:05:50.000000000 +0200
  2. +++ e2fsprogs-1.42.8/lib/ext2fs/unix_io.c 2013-08-14 13:31:40.000000000 +0200
  3. @@ -22,6 +22,9 @@
  4. #endif
  5. #include "config.h"
  6. +#if HAVE_STDINT_H
  7. +#include <stdint.h>
  8. +#endif
  9. #include <stdio.h>
  10. #include <string.h>
  11. #if HAVE_UNISTD_H
  12. @@ -931,10 +934,10 @@ static errcode_t unix_discard(io_channel
  13. if (channel->flags & CHANNEL_FLAGS_BLOCK_DEVICE) {
  14. #ifdef BLKDISCARD
  15. - __uint64_t range[2];
  16. + uint64_t range[2];
  17. - range[0] = (__uint64_t)(block) * channel->block_size;
  18. - range[1] = (__uint64_t)(count) * channel->block_size;
  19. + range[0] = (uint64_t)(block) * channel->block_size;
  20. + range[1] = (uint64_t)(count) * channel->block_size;
  21. ret = ioctl(data->dev, BLKDISCARD, &range);
  22. #else