diff --git a/src/cksum.c b/src/cksum.c index c7e93fa74..41146d256 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -109,7 +109,7 @@ main (void) uint32_t crc = 0; crc = (crc << 8) ^ crctab[0][((crc >> 24) ^ (i & 0xFF)) & 0xFF]; - for (unsigned int offset = 1; offset < 8; offset++) + for (idx_t offset = 1; offset < 8; offset++) { crc = (crc << 8) ^ crctab[0][((crc >> 24) ^ 0x00) & 0xFF]; crctab[offset][i] = crc; diff --git a/src/df.c b/src/df.c index 7511162cb..1bd17c5e9 100644 --- a/src/df.c +++ b/src/df.c @@ -443,7 +443,7 @@ decode_output_arg (char const *arg) /* process S. */ display_field_t field = INVALID_FIELD; - for (unsigned int i = 0; i < ARRAY_CARDINALITY (field_data); i++) + for (idx_t i = 0; i < ARRAY_CARDINALITY (field_data); i++) { if (STREQ (field_data[i].arg, s)) { diff --git a/src/digest.c b/src/digest.c index 60ba82e5f..c78ed66ee 100644 --- a/src/digest.c +++ b/src/digest.c @@ -658,7 +658,7 @@ valid_digits (unsigned char const *s, size_t len) #endif if (len == digest_hex_bytes) { - for (unsigned int i = 0; i < digest_hex_bytes; i++) + for (idx_t i = 0; i < digest_hex_bytes; i++) { if (!isxdigit (*s)) return false;