tests: Fix printf compiler warning for an error case.
authorWerner Koch <wk@gnupg.org>
Wed, 12 Jul 2017 16:32:50 +0000 (18:32 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 12 Jul 2017 16:32:50 +0000 (18:32 +0200)
* tests/gpg/t-keylist.c (main): Cast DIM to int.

Signed-off-by: Werner Koch <wk@gnupg.org>
tests/gpg/t-keylist.c

index 8a32f9b..0417011 100644 (file)
@@ -569,7 +569,7 @@ main (int argc, char **argv)
   if (keys[i].fpr)
     {
       fprintf (stderr, "Less keys (%d) returned than expected (%d)\n",
-              i, DIM (keys) - 1);
+              i, (int)(DIM (keys) - 1));
       exit (1);
     }