mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-29 15:44:04 +00:00
uencrypt: Fix compile warnings
keylen and ivlen are of type long and not size_t. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
de976f8fe0
commit
0fd9acb471
@ -85,12 +85,12 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
if (ivlen != get_cipher_ivsize(cipher)) {
|
||||
fprintf(stderr, "Error: IV must be %d bytes; given IV is %zd bytes.\n",
|
||||
fprintf(stderr, "Error: IV must be %d bytes; given IV is %ld bytes.\n",
|
||||
get_cipher_ivsize(cipher), ivlen);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (keylen != get_cipher_keysize(cipher)) {
|
||||
fprintf(stderr, "Error: key must be %d bytes; given key is %zd bytes.\n",
|
||||
fprintf(stderr, "Error: key must be %d bytes; given key is %ld bytes.\n",
|
||||
get_cipher_keysize(cipher), keylen);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user