aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-02-03 07:32:31 +0100
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-02-03 07:32:31 +0100
commit5fceada4141986b8b23f25c78dc17ae3214e9bed (patch)
treea232bb07ac5b718214f76327a1cb9798644702c2
parent0c2fabc6c5cc1631fc2fb8dc7ee46333cc9e4ddc (diff)
downloadlibrb-5fceada4141986b8b23f25c78dc17ae3214e9bed.tar.gz
librb-5fceada4141986b8b23f25c78dc17ae3214e9bed.tar.bz2
librb-5fceada4141986b8b23f25c78dc17ae3214e9bed.zip
little reformat
-rw-r--r--rb/rb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/rb/rb.c b/rb/rb.c
index b8ae3b8..0808d91 100644
--- a/rb/rb.c
+++ b/rb/rb.c
@@ -604,12 +604,16 @@ long rb_sendt
========================================================================== */
-static void *rb_stop_thread(void *arg)
+static void *rb_stop_thread
+(
+ void *arg /* disguised rb object */
+)
{
struct rb *rb; /* ring buffer object */
int stopped; /* copy of rb->stopped_all */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
+
rb = arg;
stopped = 0;
@@ -673,6 +677,7 @@ struct rb *rb_new
struct rb *rb; /* pointer to newly created buffer */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
+
#if ENABLE_THREADS == 0
/*
* multithreaded operations are not allowed when library is compiled