[openwrt/openwrt] uencrypt: Fix compile warnings
LEDE Commits
lede-commits at lists.infradead.org
Mon Jul 8 12:17:36 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/3941633dd788df2bdcb5bb26ed5cb374e5f6076a
commit 3941633dd788df2bdcb5bb26ed5cb374e5f6076a
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Sun Apr 7 22:46:13 2024 +0200
uencrypt: Fix compile warnings
keylen and ivlen are of type long and not size_t.
(cherry picked from commit 0fd9acb47165e9ef07b3fa0e4f381ebe5365464c)
Link: https://github.com/openwrt/openwrt/pull/15898
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
package/utils/uencrypt/src/uencrypt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/utils/uencrypt/src/uencrypt.c b/package/utils/uencrypt/src/uencrypt.c
index 36e17e220b..a49db6e2d9 100644
--- a/package/utils/uencrypt/src/uencrypt.c
+++ b/package/utils/uencrypt/src/uencrypt.c
@@ -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);
}
More information about the lede-commits
mailing list