mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
audit: simplify declaration
* src/util/virtaudit.c (virAuditSend): one less ifdef, since gcc does not care if an ATTRIBUTE_UNUSED var gets used in some paths.
This commit is contained in:
parent
a1109a7c7c
commit
f1eb9ed954
@ -71,18 +71,12 @@ void virAuditLog(int logging)
|
||||
}
|
||||
|
||||
|
||||
#if HAVE_AUDIT
|
||||
void virAuditSend(const char *file ATTRIBUTE_UNUSED, const char *func, size_t linenr,
|
||||
const char *clienttty, const char *clientaddr,
|
||||
enum virAuditRecordType type, bool success,
|
||||
const char *fmt, ...)
|
||||
#else
|
||||
void virAuditSend(const char *file ATTRIBUTE_UNUSED, const char *func, size_t linenr,
|
||||
void virAuditSend(const char *file ATTRIBUTE_UNUSED, const char *func,
|
||||
size_t linenr,
|
||||
const char *clienttty ATTRIBUTE_UNUSED,
|
||||
const char *clientaddr ATTRIBUTE_UNUSED,
|
||||
enum virAuditRecordType type ATTRIBUTE_UNUSED, bool success,
|
||||
const char *fmt, ...)
|
||||
#endif
|
||||
{
|
||||
char *str = NULL;
|
||||
va_list args;
|
||||
|
Loading…
x
Reference in New Issue
Block a user