common: Fix build problem with Sun Studio compiler.
authorWerner Koch <wk@gnupg.org>
Fri, 15 Nov 2013 08:08:58 +0000 (09:08 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 15 Nov 2013 08:08:58 +0000 (09:08 +0100)
* common/estream.c (ESTREAM_MUTEX_UNLOCK): Use int dummy dummy
functions.
(ESTREAM_MUTEX_INITIALIZE): Ditto.
--

GnuPG-bug-id: 1566
Signed-off-by: Werner Koch <wk@gnupg.org>
common/estream.c

index 35b2af0..86d8e21 100644 (file)
@@ -181,13 +181,13 @@ static int estream_pth_killed;
   (estream_pth_killed ? dummy_mutex_call_void ((mutex))         \
    : (void)pth_mutex_acquire (&(mutex), 0, NULL))
 # define ESTREAM_MUTEX_UNLOCK(mutex)                            \
-  (estream_pth_killed ? dummy_mutex_call_void ((mutex))         \
+  (estream_pth_killed ? dummy_mutex_call_int ((mutex))          \
    : pth_mutex_release (&(mutex)))
 # define ESTREAM_MUTEX_TRYLOCK(mutex)                                   \
   (estream_pth_killed ? dummy_mutex_call_int ((mutex))                  \
    : ((pth_mutex_acquire (&(mutex), 1, NULL) == TRUE)? 0:-1))
 # define ESTREAM_MUTEX_INITIALIZE(mutex)                        \
-  (estream_pth_killed ? dummy_mutex_call_void ((mutex))         \
+  (estream_pth_killed ? dummy_mutex_call_int ((mutex))          \
    : pth_mutex_init (&(mutex)))
 
 #else /*!HAVE_PTH*/