Skip to content

Commit

Permalink
authz: fix usage of bool in listfile.c
Browse files Browse the repository at this point in the history
Clean up wrong usage of FALSE and TRUE in places that use "bool" from stdbool.h.

FALSE and TRUE (with capital letters) are the constants defined by glib for
being used with the "gboolean" type of glib. But some parts of the code also use
TRUE and FALSE for variables that are declared as "bool" (the type from <stdbool.h>).

Signed-off-by: Jafar Abdi <cafer.abdi@gmail.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
  • Loading branch information
JafarAbdi authored and berrange committed Feb 7, 2020
1 parent c64e1e7 commit 834e8bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authz/listfile.c
Expand Up @@ -239,7 +239,7 @@ qauthz_list_file_init(Object *obj)

authz->file_watch = -1;
#ifdef CONFIG_INOTIFY1
authz->refresh = TRUE;
authz->refresh = true;
#endif
}

Expand Down

0 comments on commit 834e8bf

Please sign in to comment.