From ae47cd1da77356ce812d19cb9d6679a8d1f4fd12 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 31 Mar 2007 10:30:02 +0000 Subject: [PATCH] hdparm: fix multisector mode setting (from Toni Mirabete ) --- miscutils/hdparm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index 89c7ece77..cc33a010a 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c @@ -1577,9 +1577,9 @@ static void process_dev(char *devname) if (set_mult) { print_flag(get_mult, "multcount", mult); #ifdef HDIO_DRIVE_CMD - bb_ioctl(fd, HDIO_SET_MULTCOUNT, &mult, "HDIO_SET_MULTCOUNT"); + bb_ioctl(fd, HDIO_SET_MULTCOUNT, (void *)mult, "HDIO_SET_MULTCOUNT"); #else - force_operation |= (!bb_ioctl(fd, HDIO_SET_MULTCOUNT, &mult, "HDIO_SET_MULTCOUNT")); + force_operation |= (!bb_ioctl(fd, HDIO_SET_MULTCOUNT, (void *)mult, "HDIO_SET_MULTCOUNT")); #endif } if (set_readonly) {