mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
audit: use bool for audit log choice
We weren't ever using the value for anything other than being non-zero. * src/util/viraudit.h (virAuditLog): Change signature. * src/util/viraudit.c (virAuditLog): Update user. * daemon/libvirtd.c (main): Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
@@ -1443,7 +1443,7 @@ int main(int argc, char **argv) {
|
||||
VIR_DEBUG("Proceeding without auditing");
|
||||
}
|
||||
}
|
||||
virAuditLog(config->audit_logging);
|
||||
virAuditLog(config->audit_logging > 0);
|
||||
|
||||
/* setup the hooks if any */
|
||||
if (virHookInitialize() < 0) {
|
||||
|
||||
Reference in New Issue
Block a user