summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2015-12-23 14:19:00 +0000
committerFrediano Ziglio <fziglio@redhat.com>2016-01-07 16:46:19 +0000
commit80cc3f680a1da4cfc7b2bc1666903086072ce1de (patch)
treeae133cfe6d5553cbabd8fa541d3e3612f57c3792
parent397eb47816a90c131cdaf92446a08984a9a97dcc (diff)
downloadspice-common-80cc3f680a1da4cfc7b2bc1666903086072ce1de.tar.gz
spice-common-80cc3f680a1da4cfc7b2bc1666903086072ce1de.tar.xz
spice-common-80cc3f680a1da4cfc7b2bc1666903086072ce1de.zip
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@redhat.com> Acked-by: Uri Lublin <uril@redhat.com> Acked-by: Victor Toso <victortoso@redhat.com>
-rw-r--r--common/ring.h2
1 files changed, 1 insertions, 1 deletions
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)