From 81d1f1f5a2d41dfd76defc700cdf68660d12f323 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 19 Sep 2009 17:26:41 -0400 Subject: [PATCH] add static declarations Signed-off-by: Mathieu Desnoyers --- urcu-qsbr.c | 2 +- urcu.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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; -- 2.34.1