aboutsummaryrefslogtreecommitdiff
path: root/miscutils/hdparm.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-11-06 03:05:54 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-11-06 03:05:54 +0000
commit6bef3d1d2216234454875052220ca0f477a820b4 (patch)
tree717060345370b781d3d1cde7ab4dd29304a066e8 /miscutils/hdparm.c
parent1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5 (diff)
downloadbusybox-w32-6bef3d1d2216234454875052220ca0f477a820b4.tar.gz
busybox-w32-6bef3d1d2216234454875052220ca0f477a820b4.tar.bz2
busybox-w32-6bef3d1d2216234454875052220ca0f477a820b4.zip
fbset: fix buglet where we were using wrong pointer
readahead: stop using stdio.h *: style fixes
Diffstat (limited to 'miscutils/hdparm.c')
-rw-r--r--miscutils/hdparm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 93b1aacb3..03a30e6e9 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -1111,7 +1111,8 @@ static void identify(uint16_t *val)
1111 /* reset result */ 1111 /* reset result */
1112 jj = val[HWRST_RSLT]; 1112 jj = val[HWRST_RSLT];
1113 if ((jj & VALID) == VALID_VAL) { 1113 if ((jj & VALID) == VALID_VAL) {
1114 if (!(oo = (jj & RST0))) 1114 oo = (jj & RST0);
1115 if (!oo)
1115 jj >>= 8; 1116 jj >>= 8;
1116 if ((jj & DEV_DET) == JUMPER_VAL) 1117 if ((jj & DEV_DET) == JUMPER_VAL)
1117 strng = " determined by the jumper"; 1118 strng = " determined by the jumper";