summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/data.c b/data.c
index a4a6911..4f1449d 100644
--- a/data.c
+++ b/data.c
@@ -1669,7 +1669,7 @@ static int _purge_file(const char *fn, time_t mt)
1669} 1669}
1670 1670
1671 1671
1672static void _purge_subdir(snac *snac, const char *subdir, int days) 1672static void _purge_user_subdir(snac *snac, const char *subdir, int days)
1673/* purges all files in subdir older than days */ 1673/* purges all files in subdir older than days */
1674{ 1674{
1675 int cnt = 0; 1675 int cnt = 0;
@@ -1782,10 +1782,10 @@ void purge_user(snac *snac)
1782 pub_days = user_days; 1782 pub_days = user_days;
1783 } 1783 }
1784 1784
1785 _purge_subdir(snac, "hidden", priv_days); 1785 _purge_user_subdir(snac, "hidden", priv_days);
1786 _purge_subdir(snac, "private", priv_days); 1786 _purge_user_subdir(snac, "private", priv_days);
1787 1787
1788 _purge_subdir(snac, "public", pub_days); 1788 _purge_user_subdir(snac, "public", pub_days);
1789 1789
1790 const char *idxs[] = { "followers.idx", "private.idx", "public.idx", NULL }; 1790 const char *idxs[] = { "followers.idx", "private.idx", "public.idx", NULL };
1791 1791