svn commit: trunk/busybox/miscutils

vda at busybox.net vda at busybox.net
Sat Mar 31 10:30:02 UTC 2007


Author: vda
Date: 2007-03-31 03:30:02 -0700 (Sat, 31 Mar 2007)
New Revision: 18287

Log:
hdparm: fix multisector mode setting
(from Toni Mirabete <amirabete at catix.cat>)


Modified:
   trunk/busybox/miscutils/hdparm.c


Changeset:
Modified: trunk/busybox/miscutils/hdparm.c
===================================================================
--- trunk/busybox/miscutils/hdparm.c	2007-03-31 10:19:11 UTC (rev 18286)
+++ trunk/busybox/miscutils/hdparm.c	2007-03-31 10:30:02 UTC (rev 18287)
@@ -1577,9 +1577,9 @@
 	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) {




More information about the busybox-cvs mailing list