# | Line 53 | Line 53 | report_crypto_errors(void) | |
---|---|---|
53 | } | |
54 | ||
55 | static void | |
56 | < | binary_to_hex(unsigned char *bin, char *hex, int length) |
56 | > | binary_to_hex(unsigned char *bin, char *hex, unsigned int length) |
57 | { | |
58 | static const char trans[] = "0123456789ABCDEF"; | |
59 | < | int i; |
59 | > | unsigned int i = 0; |
60 | ||
61 | < | for (i = 0; i < length; ++i) |
61 | > | for (; i < length; ++i) |
62 | { | |
63 | hex[(i << 1) ] = trans[bin[i] >> 4]; | |
64 | hex[(i << 1) + 1] = trans[bin[i] & 0xf]; |
– | Removed lines |
+ | Added lines |
< | Changed lines (old) |
> | Changed lines (new) |