Fix pool module compilation issues.
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Dec 2010 09:40:48 +0000 (09:40 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Dec 2010 09:40:48 +0000 (09:40 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4649 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/struct/pool.h

index 3348a8704290347bbde619cc19bf54a8afae4e4c..f53d4061c828bb3679ddf3381cd201922811bf4a 100644 (file)
@@ -48,7 +48,7 @@
        storage name; \
        INLINE void name##_init(void (*init_func)(type*)) \
        { \
-               int i; \
+               size_t i; \
                LIST_INIT(&name); \
                for (i=0;i<countof(name##_items);++i) \
                { \
@@ -66,7 +66,7 @@
        DECLARE_POOL_WITH_STORAGE(name, type, num, static List)
 
 #define pool_init(name, init_func)     (*(name##_init))(init_func)
-#define pool_alloc(name)               REMHEAD(name)
+#define pool_alloc(name)               list_remHead(name)
 #define pool_free(name, elem)          ADDHEAD(name, (Node*)elem)
 #define pool_empty(name)               ISLISTEMPTY(name)