提交 f1eb9ed9 编写于 作者: E Eric Blake

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.
上级 a1109a7c
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册