summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <dshaw@jabberwocky.com>2006-03-30 16:13:35 +0200
committerDavid Shaw <dshaw@jabberwocky.com>2006-03-30 16:13:35 +0200
commitf99dec9e53e924f2f3e0a29236245b5b3f46fddb (patch)
treeacce2af50e7ee8341f28cd22c01304d3367a40d8
parent* gpgkeys_ldap.c: #define LDAP_DEPRECATED for newer OpenLDAPs so they use (diff)
downloadgnupg2-f99dec9e53e924f2f3e0a29236245b5b3f46fddb.tar.xz
gnupg2-f99dec9e53e924f2f3e0a29236245b5b3f46fddb.zip
* cert.c (main): Fix test program build warning on OSX.
-rw-r--r--util/ChangeLog4
-rw-r--r--util/cert.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/util/ChangeLog b/util/ChangeLog
index b528ef0af..574477a6e 100644
--- a/util/ChangeLog
+++ b/util/ChangeLog
@@ -1,3 +1,7 @@
+2006-03-30 David Shaw <dshaw@jabberwocky.com>
+
+ * cert.c (main): Fix test program build warning on OSX.
+
2006-03-16 David Shaw <dshaw@jabberwocky.com>
* cert.c (get_cert): Handle the fixed IPGP type with fingerprint.
diff --git a/util/cert.c b/util/cert.c
index bae1b196f..1b3390b80 100644
--- a/util/cert.c
+++ b/util/cert.c
@@ -221,7 +221,7 @@ main(int argc,char *argv[])
printf("no answer\n");
else if(rc==1)
{
- printf("key found: %d bytes\n",iobuf_get_temp_length(iobuf));
+ printf("key found: %d bytes\n",(int)iobuf_get_temp_length(iobuf));
iobuf_close(iobuf);
}
else if(rc==2)
@@ -229,7 +229,7 @@ main(int argc,char *argv[])
if(fpr)
{
size_t i;
- printf("Fingerprint found (%d bytes): ",fpr_len);
+ printf("Fingerprint found (%d bytes): ",(int)fpr_len);
for(i=0;i<fpr_len;i++)
printf("%02X",fpr[i]);
printf("\n");