From 68ae28cc4a7e969e918e6fd5c5212fa272a86c2e Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 6 Mar 2019 20:00:48 +0100 Subject: [PATCH] utils: cosmetic fix for sbuf_alloc_fail --- src/utils.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/utils.c b/src/utils.c index c3557bbf3..673824e2d 100644 --- a/src/utils.c +++ b/src/utils.c @@ -359,9 +359,9 @@ char *utf8_validate_inplace(char *s) */ static void -sbuf_alloc_fail(int len) +sbuf_alloc_fail(size_t len) { - fprintf(stderr, "Unable to allocate %d bytes\n", len); + fprintf(stderr, "Unable to allocate %jd bytes\n", len); abort(); } @@ -558,6 +558,10 @@ sbuf_read(sbuf_t *sb, int fd) return n; } +/** + * + */ + static uint8_t * openssl_hash ( uint8_t *hash, const uint8_t *msg, size_t msglen, const EVP_MD *md ) { -- 2.47.2