From: Hauke Mehrtens Date: Sun, 7 Apr 2024 20:46:13 +0000 (+0200) Subject: uencrypt: Fix compile warnings X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0fd9acb47165e9ef07b3fa0e4f381ebe5365464c;p=openwrt%2Fstaging%2Fthess.git uencrypt: Fix compile warnings keylen and ivlen are of type long and not size_t. Signed-off-by: Hauke Mehrtens --- 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); }