summaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
authorSimonQian <SimonQian@SimonQian.com>2011-02-18 20:39:55 +0800
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-02-18 13:54:22 +0100
commit2bd6a4795a2c4096aab614d729fe189b67b78d44 (patch)
tree7a9c9bfa072a0dac05be64bf6c9516c5bbc11ee5 /src/flash
parent578294dbdd93ab79a6ecc1561c52a974d1b588af (diff)
downloadopenocd+libswd-2bd6a4795a2c4096aab614d729fe189b67b78d44.tar.gz
openocd+libswd-2bd6a4795a2c4096aab614d729fe189b67b78d44.tar.bz2
openocd+libswd-2bd6a4795a2c4096aab614d729fe189b67b78d44.tar.xz
openocd+libswd-2bd6a4795a2c4096aab614d729fe189b67b78d44.zip
fix compile error under MinGW
Diffstat (limited to 'src/flash')
-rw-r--r--src/flash/nand/ecc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flash/nand/ecc.c b/src/flash/nand/ecc.c
index b4039976..b3623d4c 100644
--- a/src/flash/nand/ecc.c
+++ b/src/flash/nand/ecc.c
@@ -121,12 +121,12 @@ int nand_calculate_ecc(struct nand_device *nand, const uint8_t *dat, uint8_t *ec
return 0;
}
-static inline int countbits(uint32_t byte)
+static inline int countbits(uint32_t b)
{
int res = 0;
- for (;byte; byte >>= 1)
- res += byte & 0x01;
+ for (;b; b >>= 1)
+ res += b & 0x01;
return res;
}