projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4caa09a
)
hdparm: fix multisector mode setting
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 31 Mar 2007 10:30:02 +0000
(10:30 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 31 Mar 2007 10:30:02 +0000
(10:30 -0000)
(from Toni Mirabete <amirabete@catix.cat>)
miscutils/hdparm.c
patch
|
blob
|
history
diff --git
a/miscutils/hdparm.c
b/miscutils/hdparm.c
index 89c7ece77ba47ee70e13e6c0729f23f022a6562e..cc33a010a3f1254b5ea15158e7a583b6862b5a39 100644
(file)
--- 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) {