1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 12:40: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:
Carles Fernandez 2018-02-25 13:29:01 +01:00
parent 946d3dae9f
commit e17f9268a8

View File

@ -221,7 +221,7 @@ int EXPORT supl_server_connect(supl_ctx_t *ctx, char *server) {
SSLeay_add_ssl_algorithms();
// meth = TLSv1_client_method();
meth = SSLv23_client_method();
meth = (SSL_METHOD*)SSLv23_client_method();
SSL_load_error_strings();
ctx->ssl_ctx = SSL_CTX_new(meth);
if (!ctx->ssl_ctx) return E_SUPL_CONNECT;