From 64e87083394d38998feab359caac917bcc6139d3 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 27 Nov 2015 18:30:14 +0100 Subject: 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 --- sm/certdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sm/certdump.c') 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; } -- cgit v1.2.3