Clean-up: common: error_log_time doesn't need to be global
[lttng-tools.git] / src / common / error.cpp
index 1bf9491c27d8c8295716722c63e3e9ccd59e86dd..0bb088066466cb1ea331e849305ed783cdd990fc 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 
+namespace {
 /*
  * lttng_opt_abort_on_error: unset: -1, disabled: 0, enabled: 1.
  * Controlled by the LTTNG_ABORT_ON_ERROR environment variable.
  */
-static int lttng_opt_abort_on_error = -1;
+int lttng_opt_abort_on_error = -1;
 
 /* TLS variable that contains the time of one single log entry. */
 DEFINE_URCU_TLS(struct log_time, error_log_time);
+} /* namespace */
+
 DEFINE_URCU_TLS(const char *, logger_thread_name);
 
 const char *log_add_time()
This page took 0.025037 seconds and 4 git commands to generate.