ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/rsa.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/rsa.c (file contents):
Revision 3335 by michael, Thu Apr 17 18:55:31 2014 UTC vs.
Revision 3457 by michael, Thu May 1 19:42:52 2014 UTC

# 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];

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)