fixes wrong integer type v1.2

Sat, 20 Oct 2018 11:03:38 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 20 Oct 2018 11:03:38 +0200
branch
v1.2
changeset 484
9435cb1ddf76
parent 483
7ed43dd4d5bf
child 485
c7bea9ad9d9c

fixes wrong integer type

dav/main.c file | annotate | diff | comparison | revisions
libidav/crypto.c file | annotate | diff | comparison | revisions
--- a/dav/main.c	Sat Oct 20 10:22:42 2018 +0200
+++ b/dav/main.c	Sat Oct 20 11:03:38 2018 +0200
@@ -2011,4 +2011,5 @@
         fprintf(stderr, "Repository %s does not exist.\n", reponame.ptr);
         return -1;
     }
+    return 0;
 }
--- a/libidav/crypto.c	Sat Oct 20 10:22:42 2018 +0200
+++ b/libidav/crypto.c	Sat Oct 20 11:03:38 2018 +0200
@@ -551,7 +551,7 @@
         size_t avail = outlen;
         status = CCCryptorUpdate(enc->ctx, in, in_len, out + ivl, avail, &outlen);
         if(in_len != len) {
-            int newoutlen = 16;
+            size_t newoutlen = 16;
             status = CCCryptorFinal(enc->ctx, out + ivl + outlen, 16, &newoutlen);
             outlen += newoutlen;
             enc->end = 1;

mercurial