diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-31 10:30:02 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-31 10:30:02 +0000 |
commit | ae47cd1da77356ce812d19cb9d6679a8d1f4fd12 (patch) | |
tree | a5aefd8d21f2177f9a139ab1cd3ab5cc1a33ccad | |
parent | 4caa09a78291addce3868d3d468cbd6c669a1879 (diff) | |
download | busybox-w32-ae47cd1da77356ce812d19cb9d6679a8d1f4fd12.tar.gz busybox-w32-ae47cd1da77356ce812d19cb9d6679a8d1f4fd12.tar.bz2 busybox-w32-ae47cd1da77356ce812d19cb9d6679a8d1f4fd12.zip |
hdparm: fix multisector mode setting
(from Toni Mirabete <amirabete@catix.cat>)
-rw-r--r-- | miscutils/hdparm.c | 4 |
1 files 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) | |||
1577 | if (set_mult) { | 1577 | if (set_mult) { |
1578 | print_flag(get_mult, "multcount", mult); | 1578 | print_flag(get_mult, "multcount", mult); |
1579 | #ifdef HDIO_DRIVE_CMD | 1579 | #ifdef HDIO_DRIVE_CMD |
1580 | bb_ioctl(fd, HDIO_SET_MULTCOUNT, &mult, "HDIO_SET_MULTCOUNT"); | 1580 | bb_ioctl(fd, HDIO_SET_MULTCOUNT, (void *)mult, "HDIO_SET_MULTCOUNT"); |
1581 | #else | 1581 | #else |
1582 | force_operation |= (!bb_ioctl(fd, HDIO_SET_MULTCOUNT, &mult, "HDIO_SET_MULTCOUNT")); | 1582 | force_operation |= (!bb_ioctl(fd, HDIO_SET_MULTCOUNT, (void *)mult, "HDIO_SET_MULTCOUNT")); |
1583 | #endif | 1583 | #endif |
1584 | } | 1584 | } |
1585 | if (set_readonly) { | 1585 | if (set_readonly) { |