summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 65cc5a0)
raw | patch | inline | side by side (parent: 65cc5a0)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Thu, 22 Jan 2009 09:08:48 +0000 (10:08 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Thu, 22 Jan 2009 09:08:48 +0000 (10:08 +0100) |
src/utils_rrdcreate.c | patch | blob | history |
diff --git a/src/utils_rrdcreate.c b/src/utils_rrdcreate.c
index 8ff025bdf848731be525e14db1ab5e49ace7abcf..f006d13f09b604738eb45f6f869c539456a20509 100644 (file)
--- a/src/utils_rrdcreate.c
+++ b/src/utils_rrdcreate.c
#include "common.h"
#include "utils_rrdcreate.h"
+#include <pthread.h>
#include <rrd.h>
/*
};
static int rra_types_num = STATIC_ARRAY_SIZE (rra_types);
+#if !defined(HAVE_THREADSAFE_LIBRRD) || !HAVE_THREADSAFE_LIBRRD
+static pthread_mutex_t librrd_lock = PTHREAD_MUTEX_INITIALIZER;
+#endif
+
/*
* Private functions
*/
ssnprintf (last_up_str, sizeof (last_up_str), "%u", (unsigned int) last_up);
new_argv[0] = "create";
- new_argv[1] = filename;
+ new_argv[1] = (void *) filename;
new_argv[2] = "-s";
new_argv[3] = pdp_step_str;
new_argv[4] = "-b";