Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azatoth/minidlna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Maggard <jmaggard@users.sourceforge.net>2009-11-19 06:22:35 +0300
committerJustin Maggard <jmaggard@users.sourceforge.net>2009-11-19 06:22:35 +0300
commitc2903d32b99ca1b33c41a549ad1358d7dc7346c1 (patch)
treede4414b809e1833124cba0413ca3b61b33a7006b /utils.c
parent2d389db63b6c8878d174e1a2bf0960bedaa47f80 (diff)
* Allow the user to specify where to keep the database in the config file.
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index c199d19..c08284c 100644
--- a/utils.c
+++ b/utils.c
@@ -19,6 +19,7 @@
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
+#include <linux/limits.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/types.h>
@@ -27,6 +28,7 @@
#include <errno.h>
#include "minidlnatypes.h"
+#include "log.h"
int
ends_with(const char * haystack, const char * needle)
@@ -198,7 +200,7 @@ make_dir(char * path, mode_t mode)
} while (1);
- printf("make_dir: cannot create directory '%s'", path);
+ DPRINTF(E_WARN, L_GENERAL, "make_dir: cannot create directory '%s'\n", path);
return -1;
}