[rrd-developers] [PATCH] use pthread_cond_init intead of PTHREAD_COND_INITIALIZER.

kevin brintnall kbrint at rufus.net
Sun Nov 2 17:53:58 CET 2008


---
 src/rrd_daemon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c
index bee21a2..7201c52 100644
--- a/src/rrd_daemon.c
+++ b/src/rrd_daemon.c
@@ -1450,7 +1450,7 @@ static int handle_request_update (listen_socket_t *sock, /* {{{ */
 
     wipe_ci_values(ci, now);
     ci->flags = CI_FLAGS_IN_TREE;
-    ci->flushed = PTHREAD_COND_INITIALIZER;
+    pthread_cond_init(&ci->flushed, NULL);
 
     pthread_mutex_lock(&cache_lock);
     g_tree_insert (cache_tree, (void *) ci->file, (void *) ci);
-- 
1.6.0.2



More information about the rrd-developers mailing list