[Spice-devel] [RFC v4 42/62] server/red_worker: tiny cleanups

Alon Levy alevy at redhat.com
Tue Apr 26 03:55:07 PDT 2011


---
 server/red_worker.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index ebd9853..2c8ce2e 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -1904,6 +1904,7 @@ static void print_draw_item(const char* prefix, const DrawItem *draw_item)
 {
     const TreeItem *base = &draw_item->base;
     const Drawable *drawable = SPICE_CONTAINEROF(draw_item, Drawable, tree_item);
+
     printf("TEST: %s: draw id %u container %u effect %u",
            prefix,
            base->id, base->container ? base->container->base.id : 0,
@@ -2653,6 +2654,7 @@ static void red_init_streams(Surfaces *surfaces)
 {
     int i;
 
+    ASSERT(surfaces);
     ring_init(&surfaces->streams);
     surfaces->free_streams = NULL;
     for (i = 0; i < NUM_STREAMS; i++) {
@@ -3408,7 +3410,8 @@ static void free_one_drawable(RedWorker *worker, Surfaces *surfaces, int force_g
     container_cleanup(surfaces, container);
 }
 
-static Drawable *get_drawable(RedWorker *worker, Surfaces *surfaces, uint8_t effect, RedDrawable *red_drawable,
+static Drawable *get_drawable(RedWorker *worker, Surfaces *surfaces,
+                              uint8_t effect, RedDrawable *red_drawable,
                               uint32_t group_id) {
     Drawable *drawable;
     struct timespec time;
-- 
1.7.4.4



More information about the Spice-devel mailing list