[Spice-devel] [PATCH 1/2] ring: use NULL instead of 0 for null pointers

Frediano Ziglio fziglio at redhat.com
Wed Dec 23 06:24:59 PST 2015


This is consistent with the rest of the code making clear
fields are pointers.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 common/ring.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/ring.h b/common/ring.h
index 7fba50e..0b2d123 100644
--- a/common/ring.h
+++ b/common/ring.h
@@ -75,7 +75,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)
-- 
2.4.3



More information about the Spice-devel mailing list