]> git.proxmox.com Git - mirror_qemu.git/commitdiff
authz: fix usage of bool in listfile.c
authorJafar Abdi <cafer.abdi@gmail.com>
Sat, 23 Mar 2019 14:26:34 +0000 (17:26 +0300)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 7 Feb 2020 12:22:19 +0000 (12:22 +0000)
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>
authz/listfile.c

index e7a8c19bcba8d38fd34bd3818bc77ead361b7b1e..b71f57d30a62f43eca7e351f0a2a34988066d964 100644 (file)
@@ -239,7 +239,7 @@ qauthz_list_file_init(Object *obj)
 
     authz->file_watch = -1;
 #ifdef CONFIG_INOTIFY1
-    authz->refresh = TRUE;
+    authz->refresh = true;
 #endif
 }