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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/23/2015 04:24 PM, Frediano Ziglio wrote:
This is consistent with the rest of the code making clear
fields are pointers.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
  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)


Ack
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]