1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

Fixed compilation errors introduced by 629ec646303..

This commit is contained in:
Georg Richter
2016-10-18 10:53:31 +02:00
parent 532ad45c62
commit 468cda3cfb
3 changed files with 7 additions and 6 deletions

View File

@@ -1261,12 +1261,12 @@ my_bool ma_tls_connect(MARIADB_TLS *ctls)
return 0;
}
size_t ma_tls_read(MARIADB_TLS *ctls, const uchar* buffer, size_t length)
ssize_t ma_tls_read(MARIADB_TLS *ctls, const uchar* buffer, size_t length)
{
return gnutls_record_recv((gnutls_session_t )ctls->ssl, (void *)buffer, length);
}
size_t ma_tls_write(MARIADB_TLS *ctls, const uchar* buffer, size_t length)
ssize_t ma_tls_write(MARIADB_TLS *ctls, const uchar* buffer, size_t length)
{
return gnutls_record_send((gnutls_session_t )ctls->ssl, (void *)buffer, length);
}