[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] Fix compile errors in remote.c and newly added audit code



---

I pushed this under the trivial complie error fix rule :)

Matthias

 daemon/remote.c      |    4 ++--
 src/util/virtaudit.c |    4 ++--
 src/util/virtaudit.h |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/daemon/remote.c b/daemon/remote.c
index 44609c7..75df9b5 100644
--- a/daemon/remote.c
+++ b/daemon/remote.c
@@ -2233,8 +2233,6 @@ remoteDispatchDomainReboot (struct qemud_server *server ATTRIBUTE_UNUSED,
                             void *ret ATTRIBUTE_UNUSED)
 {
     virDomainPtr dom;
-    char uuidstr[VIR_UUID_STRING_BUFLEN];
-    int r;
 
     dom = get_nonnull_domain (conn, args->dom);
     if (dom == NULL) {
@@ -2286,6 +2284,8 @@ remoteDispatchDomainResume (struct qemud_server *server ATTRIBUTE_UNUSED,
                             void *ret ATTRIBUTE_UNUSED)
 {
     virDomainPtr dom;
+    char uuidstr[VIR_UUID_STRING_BUFLEN];
+    int r;
 
     dom = get_nonnull_domain (conn, args->dom);
     if (dom == NULL) {
diff --git a/src/util/virtaudit.c b/src/util/virtaudit.c
index 036a8b9..965a6e8 100644
--- a/src/util/virtaudit.c
+++ b/src/util/virtaudit.c
@@ -1,5 +1,5 @@
 /*
- * audit.h: auditing support
+ * virtaudit.c: auditing support
  *
  * Copyright (C) 2010 Red Hat, Inc.
  *
@@ -80,7 +80,7 @@ void virAuditSend(const char *file ATTRIBUTE_UNUSED, const char *func, size_t li
 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, bool success,
+                  enum virAuditRecordType type ATTRIBUTE_UNUSED, bool success,
                   const char *fmt, ...)
 #endif
 {
diff --git a/src/util/virtaudit.h b/src/util/virtaudit.h
index b0cb707..f0d9cd7 100644
--- a/src/util/virtaudit.h
+++ b/src/util/virtaudit.h
@@ -1,5 +1,5 @@
 /*
- * audit.h: auditing support
+ * virtaudit.h: auditing support
  *
  * Copyright (C) 2010 Red Hat, Inc.
  *
-- 
1.7.0.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]