[Spice-commits] common/ring.h

Frediano Ziglio fziglio at kemper.freedesktop.org
Thu Jan 7 08:48:13 PST 2016


 common/ring.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 80cc3f680a1da4cfc7b2bc1666903086072ce1de
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Wed Dec 23 14:19:00 2015 +0000

    ring: use NULL instead of 0 for null pointers
    
    This is consistent with the rest of the code making clear
    fields are pointers.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Uri Lublin <uril at redhat.com>
    Acked-by: Victor Toso <victortoso at redhat.com>

diff --git a/common/ring.h b/common/ring.h
index 890e5cd..b13bc7d 100644
--- a/common/ring.h
+++ b/common/ring.h
@@ -74,7 +74,7 @@ static inline void __ring_remove(RingItem *item)
 {
     item->next->prev = item->prev;
     item->prev->next = item->next;
-    item->prev = item->next = 0;
+    item->prev = item->next = NULL;
 }
 
 static inline void ring_remove(RingItem *item)


More information about the Spice-commits mailing list