diff options
Diffstat (limited to 'mbbsd/fav.c')
-rw-r--r-- | mbbsd/fav.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mbbsd/fav.c b/mbbsd/fav.c index 1683d7f4..6b688789 100644 --- a/mbbsd/fav.c +++ b/mbbsd/fav.c @@ -259,7 +259,12 @@ static void rebuild_fav(fav_t *fp, int clean_invisible) fp->DataTail = get_data_number(fp); } -inline void cleanup(void) +inline void fav_cleanup(void) +{ + rebuild_fav(get_fav_root(), 0); +} + +void fav_clean_invisible(void) { rebuild_fav(get_fav_root(), 1); } @@ -432,7 +437,7 @@ int fav_save(void) #endif if (fp == NULL) return -1; - rebuild_fav(get_fav_root(), 0); + fav_cleanup(); setuserfile(buf, FAV4); fd = open(buf, O_CREAT | O_TRUNC | O_WRONLY, 0600); if (fd < 0) |