mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
vfs_class::nothingisopen: return gboolean instead of int.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
01a1a01d4e
commit
5b0f177e62
@ -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;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user