mirror of https://github.com/MidnightCommander/mc
(vfs_s_subclass::dir_uptodate): return gboolean instead of int.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
6fbf3d2ecd
commit
28574f8008
|
@ -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)
|
vfs_s_dir_uptodate (struct vfs_class *me, struct vfs_s_inode *ino)
|
||||||
{
|
{
|
||||||
guint64 tim;
|
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);
|
tim = mc_timer_elapsed (mc_global.timer);
|
||||||
|
|
||||||
return (tim < ino->timestamp ? 1 : 0);
|
return (tim < ino->timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
|
|
@ -139,7 +139,7 @@ struct vfs_s_subclass
|
||||||
struct vfs_s_inode * root,
|
struct vfs_s_inode * root,
|
||||||
const char *path, int follow, int flags);
|
const char *path, int follow, int flags);
|
||||||
int (*dir_load) (struct vfs_class * me, struct vfs_s_inode * ino, char *path);
|
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 (*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);
|
int (*linear_start) (struct vfs_class * me, vfs_file_handler_t * fh, off_t from);
|
||||||
|
|
Loading…
Reference in New Issue