[Spice-commits] server/stream.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Wed Sep 13 10:24:32 UTC 2017


 server/stream.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 6ab80b19faa522a2ef1c12b1ffe31bdeea145d0f
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Tue Jun 7 16:27:06 2016 +0100

    stream: Simplify FOREACH_STREAMS macro
    
    This macro is exactly doing what RING_FOREACH just passing streams
    ring.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Christophe de Dinechin <cdupontd at redhat.com>

diff --git a/server/stream.c b/server/stream.c
index 0148d1ed..51dfc884 100644
--- a/server/stream.c
+++ b/server/stream.c
@@ -25,9 +25,7 @@
 
 #define FPS_TEST_INTERVAL 1
 #define FOREACH_STREAMS(display, item)                  \
-    for (item = ring_get_head(&(display)->priv->streams);     \
-         item != NULL;                                  \
-         item = ring_next(&(display)->priv->streams, item))
+    RING_FOREACH(item, &(display)->priv->streams)
 
 static void stream_agent_stats_print(StreamAgent *agent)
 {


More information about the Spice-commits mailing list