summaryrefslogtreecommitdiffstats
path: root/sm/certdump.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2006-11-21 12:00:14 +0100
committerWerner Koch <wk@gnupg.org>2006-11-21 12:00:14 +0100
commite50c5f39cc2ea399eead30ef451d7d5e24c13fe6 (patch)
tree37f73eb8abf85a3a6505a5a7c30b1e4c8e8d85d5 /sm/certdump.c
parentMade some PIN pads work. (diff)
downloadgnupg2-e50c5f39cc2ea399eead30ef451d7d5e24c13fe6.tar.xz
gnupg2-e50c5f39cc2ea399eead30ef451d7d5e24c13fe6.zip
No more warnings for AMD64 (at least when cross-compiling). Thus tehre is a
good chance that gpg2 will now work. Other cleanups. Updated gettext.
Diffstat (limited to 'sm/certdump.c')
-rw-r--r--sm/certdump.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sm/certdump.c b/sm/certdump.c
index 032a00ad2..9f398d5ce 100644
--- a/sm/certdump.c
+++ b/sm/certdump.c
@@ -41,6 +41,13 @@
#include "keydb.h"
#include "i18n.h"
+#ifdef HAVE_FOPENCOOKIE
+typedef ssize_t my_funopen_hook_ret_t;
+#else
+typedef int my_funopen_hook_ret_t;
+#endif
+
+
struct dn_array_s {
char *key;
char *value;
@@ -626,7 +633,7 @@ struct format_name_cookie
};
/* The writer function for the memory stream. */
-static int
+static my_funopen_hook_ret_t
format_name_writer (void *cookie, const char *buffer, size_t size)
{
struct format_name_cookie *c = cookie;