Avoid confusing GCC 4.2.1 by saying "int foo()... inline int foo() {...}"

Fixes bug 19903; bugfix on 0.2.8.1-alpha.
This commit is contained in:
Nick Mathewson 2016-08-11 20:29:37 -04:00
parent f1973e70a4
commit 49843c980a
2 changed files with 5 additions and 1 deletions

4
changes/bug19903 Normal file
View File

@ -0,0 +1,4 @@
o Minor bugfixes (compilation):
- Remove an inappropriate "inline" in tortls.c that was causing warnings
on older versions of GCC. Fixes bug 19903; 0.2.8.1-alpha.

View File

@ -143,7 +143,7 @@ tor_tls_allocate_tor_tls_object_ex_data_index(void)
/** Helper: given a SSL* pointer, return the tor_tls_t object using that
* pointer. */
STATIC inline tor_tls_t *
STATIC tor_tls_t *
tor_tls_get_by_ssl(const SSL *ssl)
{
tor_tls_t *result = SSL_get_ex_data(ssl, tor_tls_object_ex_data_index);