diff options
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/database.c b/src/database.c index bcc707f..efff29f 100644 --- a/src/database.c +++ b/src/database.c @@ -240,8 +240,7 @@ static void apk_db_dir_mkdir(struct apk_database *db, struct apk_db_dir *dir) ; } -static void apk_db_dir_unref(struct apk_database *db, struct apk_db_dir *dir, - int allow_rmdir) +void apk_db_dir_unref(struct apk_database *db, struct apk_db_dir *dir, int allow_rmdir) { dir->refs--; if (dir->refs > 0) { @@ -274,7 +273,7 @@ static void apk_db_dir_unref(struct apk_database *db, struct apk_db_dir *dir, apk_db_dir_unref(db, dir->parent, allow_rmdir); } -static struct apk_db_dir *apk_db_dir_ref(struct apk_db_dir *dir) +struct apk_db_dir *apk_db_dir_ref(struct apk_db_dir *dir) { dir->refs++; return dir; |