summaryrefslogtreecommitdiff
path: root/lib/str.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-12-06 09:46:41 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-02-06 15:44:44 +0100
commitd75d9bdee6e65cb005c59b02ecac996affb61d62 (patch)
tree39c365c5bd22520f292acdb4dddf9cfe7cec2b56 /lib/str.c
parent77bfb0cf1db4eade1b86ceadee9018fdfa1f0820 (diff)
downloadgnutls-d75d9bdee6e65cb005c59b02ecac996affb61d62.tar.gz
nettle base64_encode_raw: use cast to avoid warnings
Nettle switched prototypes for base64_encode_raw() as follows: -base64_encode_raw(uint8_t *dst, size_t length, const uint8_t *src); +base64_encode_raw(char *dst, size_t length, const uint8_t *src); That means we need to cast fist param to void if we want to avoid warnings on different platforms. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/str.c')
-rw-r--r--lib/str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/str.c b/lib/str.c
index e10ecd4802..fe6bf71661 100644
--- a/lib/str.c
+++ b/lib/str.c
@@ -898,7 +898,7 @@ _gnutls_buffer_base64print(gnutls_buffer_st * str,
return gnutls_assert_val(ret);
}
- base64_encode_raw(&str->data[str->length], len, data);
+ base64_encode_raw((void*)&str->data[str->length], len, data);
str->length += b64len;
str->data[str->length] = 0;