[Spice-devel] [PATCH 1/2] ring: use NULL instead of 0 for null pointers
Victor Toso
lists at victortoso.com
Wed Dec 23 07:45:38 PST 2015
Hi,
On Wed, Dec 23, 2015 at 02:24:59PM +0000, 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>
Acked-by: Victor Toso <victortoso 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
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
More information about the Spice-devel
mailing list