(vfs_file_handler_t::changed): change type from int to gboolean.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2018-01-08 11:27:09 +03:00
parent a514ce6d13
commit cb354e5490
2 changed files with 4 additions and 4 deletions

View File

@ -571,7 +571,7 @@ vfs_s_write (void *fh, const char *buffer, size_t count)
if (FH->linear)
vfs_die ("no writing to linear files, please");
FH->changed = 1;
FH->changed = TRUE;
if (FH->handle != -1)
{
ssize_t n;
@ -1231,7 +1231,7 @@ vfs_s_fullpath (struct vfs_class *me, struct vfs_s_inode *ino)
void *
vfs_s_open (const vfs_path_t * vpath, int flags, mode_t mode)
{
int was_changed = 0;
gboolean was_changed = FALSE;
vfs_file_handler_t *fh;
struct vfs_s_super *super;
const char *q;
@ -1292,7 +1292,7 @@ vfs_s_open (const vfs_path_t * vpath, int flags, mode_t mode)
}
g_free (dirname);
g_free (name);
was_changed = 1;
was_changed = TRUE;
}
if (S_ISDIR (ino->st.st_mode))

View File

@ -106,7 +106,7 @@ typedef struct
struct vfs_s_inode *ino;
off_t pos; /* This is for module's use */
int handle; /* This is for module's use, but if != -1, will be mc_close()d */
int changed; /* Did this file change? */
gboolean changed; /* Did this file change? */
int linear; /* Is that file open with O_LINEAR? */
void *data; /* This is for filesystem-specific use */
} vfs_file_handler_t;