summaryrefslogtreecommitdiffstats
path: root/common/textfile.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-07-26 13:03:13 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-07-26 13:03:13 +0000
commit86d19dcfa04879c863a1248851cd7854b68242cb (patch)
tree50cb20d295196a6728e25231ec82947b4475b3e2 /common/textfile.c
parentab767dcf7cf79a3411a5199b97b42e97ef80dbfc (diff)
Add a paramter for the path to create_name()
Diffstat (limited to 'common/textfile.c')
-rw-r--r--common/textfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/textfile.c b/common/textfile.c
index 076ec35b..f8b9545e 100644
--- a/common/textfile.c
+++ b/common/textfile.c
@@ -88,9 +88,9 @@ int create_file(const char *filename, const mode_t mode)
return 0;
}
-int create_name(char *buf, size_t size, char *address, char *name)
+int create_name(char *buf, size_t size, const char *path, const char *address, const char *name)
{
- return snprintf(buf, size, "%s/%s/%s", STORAGEDIR, address, name);
+ return snprintf(buf, size, "%s/%s/%s", path, address, name);
}
static inline char *find_key(char *map, const char *key, size_t len)