summaryrefslogtreecommitdiff
path: root/src/list.h
diff options
context:
space:
mode:
authorbustico2008-05-19 15:31:30 +0000
committerbustico2008-05-19 15:31:30 +0000
commit09f82d4e1e6dd1672b272c314c42d5cf30c91ea8 (patch)
treea25557d3aad5edc2641f98ea434e0b676f6b6872 /src/list.h
parent7cd590600a7ff3dd8defc3d639fd3e87f1973015 (diff)
downloadivy-c-09f82d4e1e6dd1672b272c314c42d5cf30c91ea8.zip
ivy-c-09f82d4e1e6dd1672b272c314c42d5cf30c91ea8.tar.gz
ivy-c-09f82d4e1e6dd1672b272c314c42d5cf30c91ea8.tar.bz2
ivy-c-09f82d4e1e6dd1672b272c314c42d5cf30c91ea8.tar.xz
* make the lib and api more robust by adding const where they should be
* compile with -Wall and eliminate remaining warnings
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h4
1 files changed, 2 insertions, 2 deletions
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