mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-16 05:00:35 +00:00
Fix warning in GCC 8.0.1 (Fedora Rawhide)
The warning was: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
This commit is contained in:
parent
946d3dae9f
commit
e17f9268a8
@ -221,7 +221,7 @@ int EXPORT supl_server_connect(supl_ctx_t *ctx, char *server) {
|
|||||||
|
|
||||||
SSLeay_add_ssl_algorithms();
|
SSLeay_add_ssl_algorithms();
|
||||||
// meth = TLSv1_client_method();
|
// meth = TLSv1_client_method();
|
||||||
meth = SSLv23_client_method();
|
meth = (SSL_METHOD*)SSLv23_client_method();
|
||||||
SSL_load_error_strings();
|
SSL_load_error_strings();
|
||||||
ctx->ssl_ctx = SSL_CTX_new(meth);
|
ctx->ssl_ctx = SSL_CTX_new(meth);
|
||||||
if (!ctx->ssl_ctx) return E_SUPL_CONNECT;
|
if (!ctx->ssl_ctx) return E_SUPL_CONNECT;
|
||||||
|
Loading…
Reference in New Issue
Block a user