[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox-cvs
Subject:    svn commit: trunk/busybox/miscutils
From:       vda () busybox ! net (vda at busybox ! net)
Date:       2007-03-31 10:30:02
Message-ID: 20070331103002.AA86E48027 () busybox ! net
[Download RAW message or body]

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) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic