busybox-1.5.0-hdparm.patch 601 B

1234567891011121314
  1. --- busybox-1.5.0/miscutils/hdparm.c Thu Mar 22 22:21:34 2007
  2. +++ busybox-1.5.0-hdparm/miscutils/hdparm.c Sat Mar 31 12:23:07 2007
  3. @@ -1569,9 +1569,9 @@
  4. if (set_mult) {
  5. print_flag(get_mult, "multcount", mult);
  6. #ifdef HDIO_DRIVE_CMD
  7. - bb_ioctl(fd, HDIO_SET_MULTCOUNT, &mult, "HDIO_SET_MULTCOUNT");
  8. + bb_ioctl(fd, HDIO_SET_MULTCOUNT, (void *)mult, "HDIO_SET_MULTCOUNT");
  9. #else
  10. - force_operation |= (!bb_ioctl(fd, HDIO_SET_MULTCOUNT, &mult, "HDIO_SET_MULTCOUNT"));
  11. + force_operation |= (!bb_ioctl(fd, HDIO_SET_MULTCOUNT, (void *)mult, "HDIO_SET_MULTCOUNT"));
  12. #endif
  13. }
  14. if (set_readonly) {