[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Add missing static keywords
commit 37f26aa4700eefa59bb548065dcbb4b98add9a55
Author: Taylor Yu <catalyst@xxxxxxxxxxxxxx>
Date: Tue Jan 23 15:57:35 2018 -0600
Add missing static keywords
crypto_openssl_header_version_str and crypto_openssl_version_str in
crypto_openssl_mgt.c should be static.
---
src/common/crypto_openssl_mgt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/crypto_openssl_mgt.c b/src/common/crypto_openssl_mgt.c
index bc8f71798..ea3519efa 100644
--- a/src/common/crypto_openssl_mgt.c
+++ b/src/common/crypto_openssl_mgt.c
@@ -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 *
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits