snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit a2d36aa5f22781f476848347ee7968ecb9c949d2
parent 985bb474bab5699a007275190ee9994468f2d278
Author: default <nobody@localhost>
Date:   Tue,  7 Mar 2023 14:10:13 +0100

Renamed _purge_subdir() to _purge_user_subdir().

Diffstat:
Mdata.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/data.c b/data.c @@ -1669,7 +1669,7 @@ static int _purge_file(const char *fn, time_t mt) } -static void _purge_subdir(snac *snac, const char *subdir, int days) +static void _purge_user_subdir(snac *snac, const char *subdir, int days) /* purges all files in subdir older than days */ { int cnt = 0; @@ -1782,10 +1782,10 @@ void purge_user(snac *snac) pub_days = user_days; } - _purge_subdir(snac, "hidden", priv_days); - _purge_subdir(snac, "private", priv_days); + _purge_user_subdir(snac, "hidden", priv_days); + _purge_user_subdir(snac, "private", priv_days); - _purge_subdir(snac, "public", pub_days); + _purge_user_subdir(snac, "public", pub_days); const char *idxs[] = { "followers.idx", "private.idx", "public.idx", NULL };