]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add missing static keywords
authorTaylor Yu <catalyst@torproject.org>
Tue, 23 Jan 2018 21:57:35 +0000 (15:57 -0600)
committerTaylor Yu <catalyst@torproject.org>
Tue, 23 Jan 2018 22:01:26 +0000 (16:01 -0600)
crypto_openssl_header_version_str and crypto_openssl_version_str in
crypto_openssl_mgt.c should be static.

src/common/crypto_openssl_mgt.c

index bc8f7179807914eee927aeb4f3cd09d22c213ddb..ea3519efa2efe5c811ebeb6dd54fdcb689969905 100644 (file)
@@ -64,7 +64,7 @@ parse_openssl_version_str(const char *raw_version)
     return tor_strdup(raw_version);
 }
 
-char *crypto_openssl_version_str = NULL;
+static char *crypto_openssl_version_str = NULL;
 /* Return a human-readable version of the run-time openssl version number. */
 const char *
 crypto_openssl_get_version_str(void)
@@ -76,7 +76,7 @@ crypto_openssl_get_version_str(void)
   return crypto_openssl_version_str;
 }
 
-char *crypto_openssl_header_version_str = NULL;
+static char *crypto_openssl_header_version_str = NULL;
 /* Return a human-readable version of the compile-time openssl version
 * number. */
 const char *