From 75906fbb296d2ed7cd9ca05e1b7bf0c92f84a30b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Thu, 24 Mar 2022 01:09:48 +0300 Subject: Switch from unja to roscha Still a WIP, some bugs need to be fixed. Also change the license to GPL from LGPL. It was always meant to be GPL, not sure what brain fart caused this. --- include/fs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/fs.h') diff --git a/include/fs.h b/include/fs.h index d48ac9f..00be8a1 100644 --- a/include/fs.h +++ b/include/fs.h @@ -4,7 +4,7 @@ #include #include -#include "hashmap.h" +#include "hmap.h" typedef bool (*preremove_fn)(const char *path, void *data); @@ -55,11 +55,11 @@ bool rmentry(const char *path, bool dry); /* * Recursively deletes extaneous files from directory, keeping files in the - * preserved hashmap. Returns -1 on error, number of deleted entries on success. + * preserved hmap. Returns -1 on error, number of deleted entries on success. * The number is not the total number of files on all subdirectories, but only * the number of files/dirs deleted from the directory pointed by path. */ -ssize_t rmextra(const char *path, struct hashmap *preserved, preremove_fn, +ssize_t rmextra(const char *path, struct hmap *preserved, preremove_fn, void *data, bool dry); /* @@ -70,6 +70,6 @@ ssize_t rmextra(const char *path, struct hashmap *preserved, preremove_fn, * timestamps do not match. */ bool filesync(const char *restrict srcpath, const char *restrict dstpath, - struct hashmap *preserved, bool dry); + struct hmap *preserved, bool dry); #endif -- cgit v1.2.3