diff --git a/lib/vfs/gc.c b/lib/vfs/gc.c index 7ce7e6952..c38080aec 100644 --- a/lib/vfs/gc.c +++ b/lib/vfs/gc.c @@ -214,9 +214,9 @@ vfs_stamp_create (struct vfs_class *vclass, vfsid id) with now = 1 to force freeing all filesystems that are not in use */ void -vfs_expire (int now) +vfs_expire (gboolean now) { - static int locked = 0; + static gboolean locked = FALSE; struct timeval lc_time; struct vfs_stamping *stamp, *st; @@ -224,7 +224,7 @@ vfs_expire (int now) calls message */ if (locked) return; - locked = 1; + locked = TRUE; gettimeofday (&lc_time, NULL); lc_time.tv_sec -= vfs_timeout; @@ -242,7 +242,8 @@ vfs_expire (int now) else stamp = stamp->next; } - locked = 0; + + locked = FALSE; } /* --------------------------------------------------------------------------------------------- */ @@ -253,7 +254,7 @@ vfs_expire (int now) */ int -vfs_timeouts () +vfs_timeouts (void) { return stamps ? 10 : 0; } @@ -263,7 +264,7 @@ vfs_timeouts () void vfs_timeout_handler (void) { - vfs_expire (0); + vfs_expire (FALSE); } /* --------------------------------------------------------------------------------------------- */ diff --git a/lib/vfs/vfs.h b/lib/vfs/vfs.h index 83d625d8e..6474216b7 100644 --- a/lib/vfs/vfs.h +++ b/lib/vfs/vfs.h @@ -229,7 +229,7 @@ void vfs_setup_work_dir (void); void vfs_timeout_handler (void); int vfs_timeouts (void); -void vfs_expire (int now); +void vfs_expire (gboolean now); char *vfs_get_current_dir (void); const vfs_path_t *vfs_get_raw_current_dir (void); diff --git a/src/filemanager/hotlist.c b/src/filemanager/hotlist.c index 1102f6882..d9d83e9cd 100644 --- a/src/filemanager/hotlist.c +++ b/src/filemanager/hotlist.c @@ -504,7 +504,7 @@ hotlist_button_callback (WButton * button, int action) #ifdef ENABLE_VFS case B_FREE_ALL_VFS: - vfs_expire (1); + vfs_expire (TRUE); /* fall through */ case B_REFRESH_VFS: