Cleanup: use static variables
authorCampbell Barton <ideasman42@gmail.com>
Wed, 8 Aug 2018 01:00:57 +0000 (11:00 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 8 Aug 2018 01:00:57 +0000 (11:00 +1000)
intern/clog/clog.c
intern/ghost/intern/GHOST_TaskbarX11.cpp

index 9a80d99fe73827d5a07b8368db4eed51f27ceb40..f64e7c19a5faf4599f3cc930cf9b00d92c9ea00a 100644 (file)
@@ -559,7 +559,7 @@ static void CLG_ctx_free(CLogContext *ctx)
  * \{ */
 
 /* We could support multiple at once, for now this seems not needed. */
-struct CLogContext *g_ctx = NULL;
+static struct CLogContext *g_ctx = NULL;
 
 void CLG_init(void)
 {
index 2ef82dc6636b05d9a4bd231ac339d23822f7f94a..9826ccdfa37d6e7a711533d35f2944a3fe1c1357 100644 (file)
@@ -44,7 +44,7 @@ static unity_event_loop_t unity_event_loop;
 
 static bool libunity_initialized = false;
 static bool libunity_available = false;
-void* libunity_handle = NULL;
+static void *libunity_handle = NULL;
 
 void GHOST_TaskBarX11::free()
 {