diff --git a/lib/vfs/direntry.c b/lib/vfs/direntry.c index 0562dac38..87e71a660 100644 --- a/lib/vfs/direntry.c +++ b/lib/vfs/direntry.c @@ -860,7 +860,7 @@ vfs_s_free (vfsid id) /* --------------------------------------------------------------------------------------------- */ -static int +static gboolean vfs_s_dir_uptodate (struct vfs_class *me, struct vfs_s_inode *ino) { guint64 tim; @@ -873,7 +873,7 @@ vfs_s_dir_uptodate (struct vfs_class *me, struct vfs_s_inode *ino) tim = mc_timer_elapsed (mc_global.timer); - return (tim < ino->timestamp ? 1 : 0); + return (tim < ino->timestamp); } /* --------------------------------------------------------------------------------------------- */ diff --git a/lib/vfs/xdirentry.h b/lib/vfs/xdirentry.h index 1b71a49bb..7b6410e74 100644 --- a/lib/vfs/xdirentry.h +++ b/lib/vfs/xdirentry.h @@ -139,7 +139,7 @@ struct vfs_s_subclass struct vfs_s_inode * root, const char *path, int follow, int flags); int (*dir_load) (struct vfs_class * me, struct vfs_s_inode * ino, char *path); - int (*dir_uptodate) (struct vfs_class * me, struct vfs_s_inode * ino); + gboolean (*dir_uptodate) (struct vfs_class * me, struct vfs_s_inode * ino); int (*file_store) (struct vfs_class * me, vfs_file_handler_t * fh, char *path, char *localname); int (*linear_start) (struct vfs_class * me, vfs_file_handler_t * fh, off_t from);