Re: [PATCH uq/master 3/9] event_notifier: add event_notifier_init_fd

2012-07-12 Thread Avi Kivity
On 07/05/2012 06:16 PM, Paolo Bonzini wrote:
  
  struct EventNotifier {
 - int fd;
 +int fd;
  };
  


If you're fixing whitespace, might as well fix it correctly.


-- 
error compiling committee.c: too many arguments to function


--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH uq/master 3/9] event_notifier: add event_notifier_init_fd

2012-07-05 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com
---
 event_notifier.c |7 +++
 event_notifier.h |3 ++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/event_notifier.c b/event_notifier.c
index c339bfe..99c376c 100644
--- a/event_notifier.c
+++ b/event_notifier.c
@@ -10,11 +10,18 @@
  * See the COPYING file in the top-level directory.
  */
 
+#include qemu-common.h
 #include event_notifier.h
+
 #ifdef CONFIG_EVENTFD
 #include sys/eventfd.h
 #endif
 
+void event_notifier_init_fd(EventNotifier *e, int fd)
+{
+e-fd = fd;
+}
+
 int event_notifier_init(EventNotifier *e, int active)
 {
 #ifdef CONFIG_EVENTFD
diff --git a/event_notifier.h b/event_notifier.h
index 9b2edf4..30c12dd 100644
--- a/event_notifier.h
+++ b/event_notifier.h
@@ -16,9 +16,10 @@
 #include qemu-common.h
 
 struct EventNotifier {
-   int fd;
+int fd;
 };
 
+void event_notifier_init_fd(EventNotifier *, int fd);
 int event_notifier_init(EventNotifier *, int active);
 void event_notifier_cleanup(EventNotifier *);
 int event_notifier_get_fd(EventNotifier *);
-- 
1.7.10.2


--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html