patch-fallocate_c 344 B

1234567891011
  1. --- hdparm-9.43.orig/fallocate.c 2010-10-04 21:38:39.000000000 +0200
  2. +++ hdparm-9.43/fallocate.c 2013-12-26 10:25:40.000000000 +0100
  3. @@ -27,7 +27,7 @@ int do_fallocate_syscall (const char *pa
  4. err = EINVAL;
  5. #else
  6. int fd;
  7. - loff_t offset = 0, len;
  8. + off_t offset = 0, len;
  9. int mode = 0;
  10. fd = open(path, O_WRONLY|O_CREAT|O_EXCL, 0600);