summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiraj Razick <siraj.razick@collabora.co.uk>2012-01-26 16:13:18 -0500
committerSiraj Razick <siraj.razick@collabora.co.uk>2012-01-26 16:13:18 -0500
commit97a5823f03850f70bbd1da12af1364adc925e494 (patch)
tree4ff709dd02d21500e4a81ee242965c54ecc8df33
parent3b6bae256972241e12a7c47b1bb821dda348b409 (diff)
TLS: replace gsize and gssize with size_t and ssize_t
gnutls_transport_set_push_function expects a function of ssize_t (*gnutls_push_func)(gnutls_transport_ptr_t, const void*, size_t); and in mingw32 gsize and gssize doesn't expend to size_t or ssize_t. this results in mingw32 builds fail due to the warning. https://bugs.freedesktop.org/show_bug.cgi?id=45272
-rw-r--r--wocky/wocky-tls.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/wocky/wocky-tls.c b/wocky/wocky-tls.c
index 5040b66..6bf2e3a 100644
--- a/wocky/wocky-tls.c
+++ b/wocky/wocky-tls.c
@@ -1232,10 +1232,10 @@ wocky_tls_session_write_ready (GObject *object,
wocky_tls_session_try_operation (session, WOCKY_TLS_OP_WRITE);
}
-static gssize
+static ssize_t
wocky_tls_session_push_func (gpointer user_data,
const void *buffer,
- gsize count)
+ size_t count)
{
WockyTLSSession *session = WOCKY_TLS_SESSION (user_data);
GOutputStream *stream;
@@ -1325,10 +1325,10 @@ wocky_tls_session_push_func (gpointer user_data,
}
}
-static gssize
+static ssize_t
wocky_tls_session_pull_func (gpointer user_data,
void *buffer,
- gsize count)
+ size_t count)
{
WockyTLSSession *session = WOCKY_TLS_SESSION (user_data);
GInputStream *stream;