diff options
author | Werner Koch <wk@gnupg.org> | 2015-11-27 18:30:14 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-11-27 18:32:17 +0100 |
commit | 64e87083394d38998feab359caac917bcc6139d3 (patch) | |
tree | 58d04f4cf93c71ae252cc53d2fc416bb288962fe /sm/certdump.c | |
parent | dirmngr: Avoid a declarations after statements. (diff) | |
download | gnupg2-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.c | 4 |
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; } |