1.1 --- a/ucx/map.c Mon Aug 12 14:39:51 2013 +0200 1.2 +++ b/ucx/map.c Mon Aug 12 14:43:22 2013 +0200 1.3 @@ -32,10 +32,10 @@ 1.4 #include "map.h" 1.5 1.6 UcxMap *ucx_map_new(size_t size) { 1.7 - return ucx_map_new_a(size, NULL); 1.8 + return ucx_map_new_a(NULL, size); 1.9 } 1.10 1.11 -UcxMap *ucx_map_new_a(size_t size, UcxAllocator *allocator) { 1.12 +UcxMap *ucx_map_new_a(UcxAllocator *allocator, size_t size) { 1.13 if(size == 0) { 1.14 size = 16; 1.15 } 1.16 @@ -45,7 +45,7 @@ 1.17 } 1.18 1.19 UcxMap *map = (UcxMap*)allocator->malloc(allocator->pool, sizeof(UcxMap)); 1.20 - if(map == NULL) { 1.21 + if (!map) { 1.22 return NULL; 1.23 } 1.24