From: oetiker Date: Sun, 2 Nov 2008 17:09:36 +0000 (+0000) Subject: PTHREAD_COND_INITIALIZER may only be used to initialize static cond variables. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=255896a532b24bb3be043a09cd275b85ff30788a;p=rrdtool-all.git PTHREAD_COND_INITIALIZER may only be used to initialize static cond variables. -- Sebastian Harl git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1643 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_daemon.c b/program/src/rrd_daemon.c index bee21a2d..7201c52c 100644 --- a/program/src/rrd_daemon.c +++ b/program/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);