vfs_class::nothingisopen: return gboolean instead of int.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2019-05-14 15:56:24 +03:00
parent 01a1a01d4e
commit 5b0f177e62
6 changed files with 9 additions and 9 deletions

View File

@ -839,12 +839,12 @@ vfs_s_getid (const vfs_path_t * vpath)
/* --------------------------------------------------------------------------------------------- */
static int
static gboolean
vfs_s_nothingisopen (vfsid id)
{
(void) id;
/* Our data structures should survive free of superblock at any time */
return 1;
return TRUE;
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -238,7 +238,7 @@ vfs_stamp_create (struct vfs_class *vclass, vfsid id)
mc_event_raise (MCEVENT_GROUP_CORE, "vfs_timestamp", (gpointer) & event_data);
if (!event_data.ret && vclass != NULL && vclass->nothingisopen != NULL
&& vclass->nothingisopen (id) != 0)
&& vclass->nothingisopen (id))
vfs_addstamp (vclass, id);
}
}

View File

@ -193,7 +193,7 @@ typedef struct vfs_class
vfsid (*getid) (const vfs_path_t * vpath);
int (*nothingisopen) (vfsid id);
gboolean (*nothingisopen) (vfsid id);
void (*free) (vfsid id);
vfs_path_t *(*getlocalcopy) (const vfs_path_t * vpath);

View File

@ -1373,7 +1373,7 @@ extfs_getid (const vfs_path_t * vpath)
/* --------------------------------------------------------------------------------------------- */
static int
static gboolean
extfs_nothingisopen (vfsid id)
{
return (VFS_SUPER (id)->fd_usage <= 0);

View File

@ -391,13 +391,13 @@ sfs_fill_names (struct vfs_class *me, fill_names_f func)
/* --------------------------------------------------------------------------------------------- */
static int
static gboolean
sfs_nothingisopen (vfsid id)
{
/* FIXME: Investigate whether have to guard this like in
the other VFSs (see fd_usage in extfs) -- Norbert */
(void) id;
return 1;
return TRUE;
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -765,12 +765,12 @@ undelfs_getid (const vfs_path_t * vpath)
/* --------------------------------------------------------------------------------------------- */
static int
static gboolean
undelfs_nothingisopen (vfsid id)
{
(void) id;
return !undelfs_usage;
return (undelfs_usage == 0);
}
/* --------------------------------------------------------------------------------------------- */