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

Uri Lublin uril at redhat.com
Wed Dec 23 07:30:34 PST 2015


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 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)
>

Ack


More information about the Spice-devel mailing list