diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2024-04-07 22:46:13 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2024-04-28 21:42:18 +0200 |
commit | 0fd9acb47165e9ef07b3fa0e4f381ebe5365464c (patch) | |
tree | d97ae783f662542a5517cb44e0f42b2ccede102c /package/utils | |
parent | de976f8fe0b0067db68cab08d9e5f8fcc8bed6de (diff) |
uencrypt: Fix compile warnings
keylen and ivlen are of type long and not size_t.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package/utils')
-rw-r--r-- | package/utils/uencrypt/src/uencrypt.c | 4 |
1 files 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); } |