From: Mathieu Desnoyers Date: Sat, 19 Sep 2009 21:26:41 +0000 (-0400) Subject: add static declarations X-Git-Tag: v0.1~69 X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=81d1f1f5a2d41dfd76defc700cdf68660d12f323 add static declarations Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-qsbr.c b/urcu-qsbr.c index 3b9a054..f681c05 100644 --- a/urcu-qsbr.c +++ b/urcu-qsbr.c @@ -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 07537ef..d474fc8 100644 --- 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;