svn commit: branches/busybox_1_9_stable/miscutils

aldot at busybox.net aldot at busybox.net
Sat Jan 19 11:27:40 UTC 2008


Author: aldot
Date: 2008-01-19 03:27:40 -0800 (Sat, 19 Jan 2008)
New Revision: 20877

Log:
- Fix hdparm's ioctl parameter passing (John Brandwood)
  This was applied to trunk as r20876.


Modified:
   branches/busybox_1_9_stable/miscutils/hdparm.c


Changeset:
Modified: branches/busybox_1_9_stable/miscutils/hdparm.c
===================================================================
--- branches/busybox_1_9_stable/miscutils/hdparm.c	2008-01-19 11:27:11 UTC (rev 20876)
+++ branches/busybox_1_9_stable/miscutils/hdparm.c	2008-01-19 11:27:40 UTC (rev 20877)
@@ -1764,7 +1764,7 @@
 		}
 	}
 	if (get_unmask) {
-		if(!ioctl_or_warn(fd, HDIO_GET_UNMASKINTR, (unsigned long *)parm))
+		if(!ioctl_or_warn(fd, HDIO_GET_UNMASKINTR, &parm))
 			print_value_on_off("unmaskirq", parm);
 	}
 
@@ -1781,24 +1781,24 @@
 	}
 #endif
 	if (get_dma_q) {
-		if(!ioctl_or_warn(fd, HDIO_GET_QDMA, (unsigned long *)parm))
+		if(!ioctl_or_warn(fd, HDIO_GET_QDMA, &parm))
 			print_value_on_off("queue_depth", parm);
 	}
 	if (get_keep) {
-		if(!ioctl_or_warn(fd, HDIO_GET_KEEPSETTINGS, (unsigned long *)parm))
+		if(!ioctl_or_warn(fd, HDIO_GET_KEEPSETTINGS, &parm))
 			print_value_on_off("keepsettings", parm);
 	}
 
 	if (get_nowerr) {
-		if(!ioctl_or_warn(fd, HDIO_GET_NOWERR, (unsigned long *)parm))
+		if(!ioctl_or_warn(fd, HDIO_GET_NOWERR, &parm))
 			print_value_on_off("nowerr", parm);
 	}
 	if (get_readonly) {
-		if(!ioctl_or_warn(fd, BLKROGET, (unsigned long *)parm))
+		if(!ioctl_or_warn(fd, BLKROGET, &parm))
 			print_value_on_off("readonly", parm);
 	}
 	if (get_readahead) {
-		if(!ioctl_or_warn(fd, BLKRAGET, (unsigned long *)parm))
+		if(!ioctl_or_warn(fd, BLKRAGET, &parm))
 			print_value_on_off("readahead", parm);
 	}
 	if (get_geom) {




More information about the busybox-cvs mailing list