]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
utils: cosmetic fix for sbuf_alloc_fail
authorJaroslav Kysela <perex@perex.cz>
Wed, 6 Mar 2019 19:00:48 +0000 (20:00 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 6 Mar 2019 19:00:48 +0000 (20:00 +0100)
src/utils.c

index c3557bbf3f547a4fc9ce4744dd61f4c61a8c4044..673824e2d6693d04dc4c035e214dc752b365f93e 100644 (file)
@@ -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 )
 {