From: Rosen Penev Date: Wed, 2 Jan 2019 04:07:38 +0000 (-0800) Subject: main: Replace deprecated ERR_remove_state X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62808322c0e2d96f59a4a9b5b43fbb89f8d9ae98;p=thirdparty%2Ftvheadend.git main: Replace deprecated ERR_remove_state ERR_remove_thread_state has been the successor since version 1.0.0. Fixes compilation without deprecated APIs on 1.0.0 and above. --- diff --git a/src/main.c b/src/main.c index 87d6f1270..0e3bb4ab0 100644 --- a/src/main.c +++ b/src/main.c @@ -1458,7 +1458,7 @@ main(int argc, char **argv) #if !defined(OPENSSL_NO_COMP) COMP_zlib_cleanup(); #endif - ERR_remove_state(0); + ERR_remove_thread_state(NULL); ERR_free_strings(); #if !defined(OPENSSL_NO_COMP) && OPENSSL_VERSION_NUMBER < 0x1010006f sk_SSL_COMP_free(SSL_COMP_get_compression_methods());