VIR_DEBUG("Proceeding without auditing");
}
}
- virAuditLog(config->audit_logging);
+ virAuditLog(config->audit_logging > 0);
/* setup the hooks if any */
if (virHookInitialize() < 0) {
#if WITH_AUDIT
static int auditfd = -1;
#endif
-static int auditlog = 0;
+static bool auditlog;
int virAuditOpen(void)
{
}
-void virAuditLog(int logging)
+void virAuditLog(bool logging)
{
auditlog = logging;
}
/*
* viraudit.h: auditing support
*
- * Copyright (C) 2010-2011 Red Hat, Inc.
+ * Copyright (C) 2010-2011, 2014 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
int virAuditOpen(void);
-void virAuditLog(int enabled);
+void virAuditLog(bool enabled);
void virAuditSend(virLogSourcePtr source,
const char *filename, size_t linenr, const char *funcname,