From bc190c5ac25155e0c4a53f8ea74e16082de6229d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 11 May 2014 07:02:16 +0200 Subject: a much of multicasting stuff MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libmdsserver/macros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libmdsserver/macros.h') diff --git a/src/libmdsserver/macros.h b/src/libmdsserver/macros.h index 32024a3..d70afc9 100644 --- a/src/libmdsserver/macros.h +++ b/src/libmdsserver/macros.h @@ -73,9 +73,9 @@ * @param instructions The instructions to run while the mutex is locked */ #define with_mutex(mutex, instructions) \ - pthread_mutex_lock(&(mutex)); \ + errno = pthread_mutex_lock(&(mutex)); \ instructions \ - pthread_mutex_unlock(&(mutex)) + errno = pthread_mutex_unlock(&(mutex)) /** -- cgit v1.2.3-70-g09d2