mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
uencrypt: Fix compile warnings
keylen and ivlen are of type long and not size_t.
(cherry picked from commit 0fd9acb471)
Link: https://github.com/openwrt/openwrt/pull/15898
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
ccac75a37f
commit
3941633dd7
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue