add static declarations
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sat, 19 Sep 2009 21:26:41 +0000 (17:26 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sat, 19 Sep 2009 21:26:41 +0000 (17:26 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu-qsbr.c
urcu.c

index 3b9a054b40b1bc61f29768bf5d4085d62a8b7bd9..f681c05bf0c05d96860e06cbb8771b11c9e3e829 100644 (file)
@@ -37,7 +37,7 @@
 /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
 #include "urcu-qsbr.h"
 
-pthread_mutex_t urcu_mutex = PTHREAD_MUTEX_INITIALIZER;
+static pthread_mutex_t urcu_mutex = PTHREAD_MUTEX_INITIALIZER;
 
 /*
  * Global grace period counter.
diff --git a/urcu.c b/urcu.c
index 07537efbc55c90943b49f1a240aab5935fc55bc7..d474fc8a3e8311c036f151698afdeaab7bde192a 100644 (file)
--- a/urcu.c
+++ b/urcu.c
@@ -45,9 +45,9 @@ void urcu_init(void)
 }
 #endif
 
-int init_done;
+static int init_done;
 
-pthread_mutex_t urcu_mutex = PTHREAD_MUTEX_INITIALIZER;
+static pthread_mutex_t urcu_mutex = PTHREAD_MUTEX_INITIALIZER;
 
 /*
  * Global grace period counter.
@@ -81,7 +81,7 @@ static struct reader_registry *registry;
 static char __thread need_mb;
 static int num_readers, alloc_readers;
 
-void internal_urcu_lock(void)
+static void internal_urcu_lock(void)
 {
        int ret;
 
@@ -108,7 +108,7 @@ void internal_urcu_lock(void)
 #endif /* #else #ifndef DISTRUST_SIGNALS_EXTREME */
 }
 
-void internal_urcu_unlock(void)
+static void internal_urcu_unlock(void)
 {
        int ret;
 
This page took 0.036102 seconds and 4 git commands to generate.