(sfs_vfmake): use gboolean instead of int for boolean variable was_percent.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2019-05-20 14:10:21 +03:00
parent 286e10679e
commit db342d69ac

View File

@ -129,7 +129,7 @@ sfs_vfmake (const vfs_path_t * vpath, vfs_path_t * cache_vpath)
int w; int w;
char pad[10240]; char pad[10240];
char *s_iter, *t = pad; char *s_iter, *t = pad;
int was_percent = 0; gboolean was_percent = FALSE;
vfs_path_t *pname; /* name of parent archive */ vfs_path_t *pname; /* name of parent archive */
char *pqname; /* name of parent archive, quoted */ char *pqname; /* name of parent archive, quoted */
const vfs_path_element_t *path_element; 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; const char *ptr = NULL;
was_percent = 0; was_percent = FALSE;
switch (*s_iter) switch (*s_iter)
{ {
@ -200,7 +200,7 @@ sfs_vfmake (const vfs_path_t * vpath, vfs_path_t * cache_vpath)
} }
} }
else if (*s_iter == '%') else if (*s_iter == '%')
was_percent = 1; was_percent = TRUE;
else else
{ {
COPY_CHAR; COPY_CHAR;