summaryrefslogtreecommitdiffstats
path: root/sm/certdump.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2015-11-27 18:30:14 +0100
committerWerner Koch <wk@gnupg.org>2015-11-27 18:32:17 +0100
commit64e87083394d38998feab359caac917bcc6139d3 (patch)
tree58d04f4cf93c71ae252cc53d2fc416bb288962fe /sm/certdump.c
parentdirmngr: Avoid a declarations after statements. (diff)
downloadgnupg2-64e87083394d38998feab359caac917bcc6139d3.tar.xz
gnupg2-64e87083394d38998feab359caac917bcc6139d3.zip
Avoid incompatible pointer assignment warnings on Windows.
* common/logging.c (fun_writer): Use gpgrt_ssize_t instead of ssize_t. * dirmngr/server.c (data_line_cookie_write): Ditto. * sm/certdump.c (format_name_writer): Ditto. * sm/server.c (data_line_cookie_write): Ditto. * dirmngr/http.c (cookie_read, cookie_write): Ditto. -- See the release notes of libgpg-error 1.15 for background info on gpgrt_ssize_t. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'sm/certdump.c')
-rw-r--r--sm/certdump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sm/certdump.c b/sm/certdump.c
index f32a27cc5..0cc492af4 100644
--- a/sm/certdump.c
+++ b/sm/certdump.c
@@ -652,7 +652,7 @@ struct format_name_cookie
};
/* The writer function for the memory stream. */
-static ssize_t
+static gpgrt_ssize_t
format_name_writer (void *cookie, const void *buffer, size_t size)
{
struct format_name_cookie *c = cookie;
@@ -696,7 +696,7 @@ format_name_writer (void *cookie, const void *buffer, size_t size)
c->len += size;
p[c->len] = 0; /* Terminate string. */
- return (ssize_t)size;
+ return (gpgrt_ssize_t)size;
}