aboutsummaryrefslogtreecommitdiff
path: root/miscutils/hdparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/hdparm.c')
-rw-r--r--miscutils/hdparm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 90c163973..16485b900 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -2043,10 +2043,10 @@ static void identify_from_stdin(void)
2043 2043
2044 // Convert the newline-separated hex data into an identify block. 2044 // Convert the newline-separated hex data into an identify block.
2045 2045
2046 for (i = 0; i<256; i++) 2046 for (i = 0; i<256; i++) {
2047 {
2048 int j; 2047 int j;
2049 for(j=0;j<4;j++) sbuf[i] = (sbuf[i] <<4) + fromhex(*(b++)); 2048 for (j = 0; j < 4; j++)
2049 sbuf[i] = (sbuf[i] <<4) + fromhex(*(b++));
2050 } 2050 }
2051 2051
2052 // Parse the data. 2052 // Parse the data.