summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d1b4e16)
raw | patch | inline | side by side (parent: d1b4e16)
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 7690d01949175869928ad95f986af9409150270f..58db4d8aa0166a51f49100f9c665925b730836de 100644 (file)
--- a/src/common.c
+++ b/src/common.c
/* * * * *
* 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;
*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;
+ if (check_create_dir (filename))
+ return (-1);
+
log = fopen (filename, "w");
if (log == NULL)
{