[openwrt/openwrt] uencrypt: Fix compile warnings

LEDE Commits lede-commits at lists.infradead.org
Sun Apr 28 12:43:38 PDT 2024


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/0fd9acb47165e9ef07b3fa0e4f381ebe5365464c

commit 0fd9acb47165e9ef07b3fa0e4f381ebe5365464c
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.
    
    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