diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-12-06 09:46:41 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-02-06 15:44:44 +0100 |
commit | d75d9bdee6e65cb005c59b02ecac996affb61d62 (patch) | |
tree | 39c365c5bd22520f292acdb4dddf9cfe7cec2b56 /lib/str.c | |
parent | 77bfb0cf1db4eade1b86ceadee9018fdfa1f0820 (diff) | |
download | gnutls-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |