summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPovilas Kanapickas <povilas@radix.lt>2020-11-27 18:48:56 +0200
committerPovilas Kanapickas <povilas@radix.lt>2020-11-27 18:48:56 +0200
commitb9be5bc03baceeae108e8a09a2559b33400f395f (patch)
treee72e873da2df0352cd3bf6b71f2978f633483b43
parentdb9076e9469c318b900d557cb76efffad953d219 (diff)
Mark local global variable with internal linkage
-rw-r--r--src/xorg-gtest_main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xorg-gtest_main.cpp b/src/xorg-gtest_main.cpp
index 459c003..a1cdbe4 100644
--- a/src/xorg-gtest_main.cpp
+++ b/src/xorg-gtest_main.cpp
@@ -53,10 +53,10 @@ const struct option longopts[] = {
{ nullptr, 0, nullptr, 0 }
};
-} // namespace
-
xorg::testing::Environment* environment = nullptr;
+} // namespace
+
static void signal_handler(int signum) {
if (environment)
environment->Kill();