summaryrefslogtreecommitdiffstats
path: root/sm/server.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/server.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/server.c')
-rw-r--r--sm/server.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sm/server.c b/sm/server.c
index e47861b43..f0512efac 100644
--- a/sm/server.c
+++ b/sm/server.c
@@ -55,8 +55,8 @@ struct server_local_s {
/* Cookie definition for assuan data line output. */
-static ssize_t data_line_cookie_write (void *cookie,
- const void *buffer, size_t size);
+static gpgrt_ssize_t data_line_cookie_write (void *cookie,
+ const void *buffer, size_t size);
static int data_line_cookie_close (void *cookie);
static es_cookie_io_functions_t data_line_cookie_functions =
{
@@ -129,7 +129,7 @@ has_option (const char *line, const char *name)
/* A write handler used by es_fopencookie to write assuan data
lines. */
-static ssize_t
+static gpgrt_ssize_t
data_line_cookie_write (void *cookie, const void *buffer, size_t size)
{
assuan_context_t ctx = cookie;
@@ -140,7 +140,7 @@ data_line_cookie_write (void *cookie, const void *buffer, size_t size)
return -1;
}
- return size;
+ return (gpgrt_ssize_t)size;
}
static int