From db342d69ac9e4e69830fd01d08d15d7cd73e6908 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Mon, 20 May 2019 14:10:21 +0300 Subject: [PATCH] (sfs_vfmake): use gboolean instead of int for boolean variable was_percent. Signed-off-by: Andrew Borodin --- src/vfs/sfs/sfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vfs/sfs/sfs.c b/src/vfs/sfs/sfs.c index a271a78a6..4e2d35afc 100644 --- a/src/vfs/sfs/sfs.c +++ b/src/vfs/sfs/sfs.c @@ -129,7 +129,7 @@ sfs_vfmake (const vfs_path_t * vpath, vfs_path_t * cache_vpath) int w; char pad[10240]; char *s_iter, *t = pad; - int was_percent = 0; + gboolean was_percent = FALSE; vfs_path_t *pname; /* name of parent archive */ char *pqname; /* name of parent archive, quoted */ const vfs_path_element_t *path_element; @@ -174,7 +174,7 @@ sfs_vfmake (const vfs_path_t * vpath, vfs_path_t * cache_vpath) { const char *ptr = NULL; - was_percent = 0; + was_percent = FALSE; switch (*s_iter) { @@ -200,7 +200,7 @@ sfs_vfmake (const vfs_path_t * vpath, vfs_path_t * cache_vpath) } } else if (*s_iter == '%') - was_percent = 1; + was_percent = TRUE; else { COPY_CHAR;