From 09f82d4e1e6dd1672b272c314c42d5cf30c91ea8 Mon Sep 17 00:00:00 2001 From: bustico Date: Mon, 19 May 2008 15:31:30 +0000 Subject: * make the lib and api more robust by adding const where they should be * compile with -Wall and eliminate remaining warnings --- src/list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/list.h') diff --git a/src/list.h b/src/list.h index 2a7ea84..b06406d 100644 --- a/src/list.h +++ b/src/list.h @@ -75,8 +75,8 @@ pour eviter de chainer un objet non initialise #define IVY_LIST_EACH( list, p ) \ for ( p = list ; p ; p = p -> next ) -#define IVY_LIST_EACH_SAFE( list, p, next )\ -for ( p = list ; (next = p ? p->next: p ),p ; p = next ) +#define IVY_LIST_EACH_SAFE( list, p, nxt )\ +for ( p = list ; (nxt = p ? p->next: p ),p ; p = nxt ) #define IVY_LIST_IS_EMPTY( list ) \ list == NULL -- cgit v1.1