mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
(vfs_s_super::want_stale): change type from int to gboolean.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
f1d9b67bb5
commit
a514ce6d13
@ -776,10 +776,10 @@ vfs_s_setctl (const vfs_path_t * vpath, int ctlop, void *arg)
|
|||||||
if (ino == NULL)
|
if (ino == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
if (arg != NULL)
|
if (arg != NULL)
|
||||||
ino->super->want_stale = 1;
|
ino->super->want_stale = TRUE;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ino->super->want_stale = 0;
|
ino->super->want_stale = FALSE;
|
||||||
vfs_s_invalidate (path_element->class, ino->super);
|
vfs_s_invalidate (path_element->class, ino->super);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -66,7 +66,7 @@ struct vfs_s_super
|
|||||||
char *name; /* My name, whatever it means */
|
char *name; /* My name, whatever it means */
|
||||||
int fd_usage; /* Number of open files */
|
int fd_usage; /* Number of open files */
|
||||||
int ino_usage; /* Usage count of this superblock */
|
int ino_usage; /* Usage count of this superblock */
|
||||||
int want_stale; /* If set, we do not flush cache properly */
|
gboolean want_stale; /* If set, we do not flush cache properly */
|
||||||
#ifdef ENABLE_VFS_NET
|
#ifdef ENABLE_VFS_NET
|
||||||
vfs_path_element_t *path_element;
|
vfs_path_element_t *path_element;
|
||||||
#endif /* ENABLE_VFS_NET */
|
#endif /* ENABLE_VFS_NET */
|
||||||
|
Loading…
Reference in New Issue
Block a user