From 420a4c163d4147b6354244cba69fbdd78e17ced2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 24 Jan 2012 19:07:11 +0100 Subject: directory: simplify constructors and clarify API documentation Pass only the "name" to a directory, instead of the full (relative) path. --- src/db/simple_db_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db') diff --git a/src/db/simple_db_plugin.c b/src/db/simple_db_plugin.c index e7cf41fa2..7b13d0a26 100644 --- a/src/db/simple_db_plugin.c +++ b/src/db/simple_db_plugin.c @@ -199,7 +199,7 @@ simple_db_open(struct db *_db, G_GNUC_UNUSED GError **error_r) { struct simple_db *db = (struct simple_db *)_db; - db->root = directory_new("", NULL); + db->root = directory_new_root(); db->mtime = 0; GError *error = NULL; @@ -212,7 +212,7 @@ simple_db_open(struct db *_db, G_GNUC_UNUSED GError **error_r) if (!simple_db_check(db, error_r)) return false; - db->root = directory_new("", NULL); + db->root = directory_new_root(); } return true; -- cgit v1.2.3