[Spice-devel] [PATCH] server/red_worker: don't typedef SpiceWatch twice

Alon Levy alevy at redhat.com
Tue Mar 20 04:00:13 PDT 2012


First defined in spice.h, fixes build failure with gcc 4.4.6
---
 server/red_worker.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index 276ada4..e3a9e10 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -236,11 +236,11 @@ double inline stat_byte_to_mega(uint64_t size)
 #define MAX_EVENT_SOURCES 20
 #define INF_EVENT_WAIT ~0
 
-typedef struct SpiceWatch {
+struct SpiceWatch {
     struct RedWorker *worker;
     SpiceWatchFunc watch_func;
     void *watch_func_opaque;
-} SpiceWatch;
+};
 
 enum {
     BUF_TYPE_RAW = 1,
-- 
1.7.9.3



More information about the Spice-devel mailing list