From: Jaroslav Kysela Date: Wed, 6 Mar 2019 19:00:48 +0000 (+0100) Subject: utils: cosmetic fix for sbuf_alloc_fail X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68ae28cc4a7e969e918e6fd5c5212fa272a86c2e;p=thirdparty%2Ftvheadend.git utils: cosmetic fix for sbuf_alloc_fail --- 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 ) {