Browse Source

(vfs_s_super::want_stale): change type from int to gboolean.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Andrew Borodin 7 years ago
parent
commit
a514ce6d13
2 changed files with 3 additions and 3 deletions
  1. 2 2
      lib/vfs/direntry.c
  2. 1 1
      lib/vfs/xdirentry.h

+ 2 - 2
lib/vfs/direntry.c

@@ -776,10 +776,10 @@ vfs_s_setctl (const vfs_path_t * vpath, int ctlop, void *arg)
             if (ino == NULL)
                 return 0;
             if (arg != NULL)
-                ino->super->want_stale = 1;
+                ino->super->want_stale = TRUE;
             else
             {
-                ino->super->want_stale = 0;
+                ino->super->want_stale = FALSE;
                 vfs_s_invalidate (path_element->class, ino->super);
             }
             return 1;

+ 1 - 1
lib/vfs/xdirentry.h

@@ -66,7 +66,7 @@ struct vfs_s_super
     char *name;                 /* My name, whatever it means */
     int fd_usage;               /* Number of open files */
     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
     vfs_path_element_t *path_element;
 #endif                          /* ENABLE_VFS_NET */