Fix char / unsigned char mismatch in blowfish module

Cleans up a compile warning, no functional change.
This commit is contained in:
Kevin Easton
2015-09-09 23:14:01 +10:00
parent e54106de83
commit c99345f1ce

View File

@@ -101,7 +101,7 @@ static void blowfish_decipher (UWORD_32bits * xl, UWORD_32bits * xr)
*xr = Xl.word;
}
static void blowfish_init (UBYTE_08bits * key, short keybytes)
static void blowfish_init (const char *key, short keybytes)
{
int i, j, bx;
time_t lowest;
@@ -115,7 +115,7 @@ static void blowfish_init (UBYTE_08bits * key, short keybytes)
if (blowbox[i].P != NULL)
{
if ((blowbox[i].keybytes == keybytes) &&
(strncmp((char *) (blowbox[i].key), (char *) key, keybytes) == 0))
(strncmp((char *) (blowbox[i].key), key, keybytes) == 0))
{
blowbox[i].lastuse = now;
bf_P = blowbox[i].P;