tests: Fix printf compiler warning for an error case.

* tests/gpg/t-keylist.c (main): Cast DIM to int.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2017-07-12 18:32:50 +02:00
parent ad0c5ab4cd
commit 46d2e48105
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

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