]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Avoid confusing GCC 4.2.1 by saying "int foo()... inline int foo() {...}"
authorNick Mathewson <nickm@torproject.org>
Fri, 12 Aug 2016 00:29:37 +0000 (20:29 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 19 Aug 2016 23:34:39 +0000 (19:34 -0400)
Fixes bug 19903; bugfix on 0.2.8.1-alpha.

changes/bug19903 [new file with mode: 0644]
src/common/tortls.c

diff --git a/changes/bug19903 b/changes/bug19903
new file mode 100644 (file)
index 0000000..33aa878
--- /dev/null
@@ -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.
+
index b68f5dfcdf7adf29eecc39e651da0c49a97f3d65..9507bb76e39580108b215887004fae73c1dc7616 100644 (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);