projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d1b4e16
)
Fixing compile-errors/-warnings when building without librrd.
author
octo
<octo>
Fri, 14 Apr 2006 15:27:31 +0000
(15:27 +0000)
committer
octo
<octo>
Fri, 14 Apr 2006 15:27:31 +0000
(15:27 +0000)
src/common.c
patch
|
blob
|
history
diff --git
a/src/common.c
b/src/common.c
index
7690d01
..
58db4d8
100644
(file)
--- a/
src/common.c
+++ b/
src/common.c
@@
-363,7
+363,8
@@
static int check_create_dir (const char *file_orig)
/* * * * *
* Magic *
* * * * */
/* * * * *
* Magic *
* * * * */
-int rra_get (char ***ret)
+#if HAVE_LIBRRD
+static int rra_get (char ***ret)
{
static char **rra_def = NULL;
static int rra_num = 0;
{
static char **rra_def = NULL;
static int rra_num = 0;
@@
-440,12
+441,16
@@
int rra_get (char ***ret)
*ret = rra_def;
return (rra_num);
}
*ret = rra_def;
return (rra_num);
}
+#endif /* HAVE_LIBRRD */
static int log_create_file (char *filename, char **ds_def, int ds_num)
{
FILE *log;
int i;
static int log_create_file (char *filename, char **ds_def, int ds_num)
{
FILE *log;
int i;
+ if (check_create_dir (filename))
+ return (-1);
+
log = fopen (filename, "w");
if (log == NULL)
{
log = fopen (filename, "w");
if (log == NULL)
{