projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
curl_json plugin: fix indentation
[collectd.git]
/
src
/
rrdtool.c
diff --git
a/src/rrdtool.c
b/src/rrdtool.c
index
b45f8d9
..
21b01d9
100644
(file)
--- a/
src/rrdtool.c
+++ b/
src/rrdtool.c
@@
-32,10
+32,6
@@
#include <rrd.h>
#include <rrd.h>
-#if HAVE_PTHREAD_H
-# include <pthread.h>
-#endif
-
/*
* Private types
*/
/*
* Private types
*/
@@
-588,7
+584,7
@@
static void rrd_cache_flush (cdtime_t timeout)
}
else /* ancient and no values -> waste of memory */
{
}
else /* ancient and no values -> waste of memory */
{
- char **tmp =
(char **) realloc ((void *)
keys,
+ char **tmp =
realloc (
keys,
(keys_num + 1) * sizeof (char *));
if (tmp == NULL)
{
(keys_num + 1) * sizeof (char *));
if (tmp == NULL)
{
@@
-756,7
+752,7
@@
static int rrd_cache_insert (const char *filename,
return (-1);
}
return (-1);
}
- values_new =
(char **)
realloc ((void *) rc->values,
+ values_new = realloc ((void *) rc->values,
(rc->values_num + 1) * sizeof (char *));
if (values_new == NULL)
{
(rc->values_num + 1) * sizeof (char *));
if (values_new == NULL)
{