diff options
author | Bernhard Reutner-Fischer | 2008-01-19 11:27:11 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2008-01-19 11:27:11 +0000 |
commit | 46904bfbcc4e8a5ede9cebc8d051350ee61bf8ae (patch) | |
tree | 30f496dc6dce8ea7b9faf4041bb96a0338f5f366 /miscutils | |
parent | 518d8dd97949be5303a405bedd26d0f325854c84 (diff) | |
download | busybox-46904bfbcc4e8a5ede9cebc8d051350ee61bf8ae.zip busybox-46904bfbcc4e8a5ede9cebc8d051350ee61bf8ae.tar.gz |
- Fix hdparm's ioctl parameter passing (John Brandwood)
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/hdparm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index 33bff70..bacbe05 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c @@ -1764,7 +1764,7 @@ static void process_dev(char *devname) } } 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 @@ static void process_dev(char *devname) } #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) { |