# HG changeset patch
# User Mike Becker <universe@uap-core.de>
# Date 1376311402 -7200
# Node ID dddb9348ea4295f2ce1c495679cf31c8bc524815
# Parent  7800811078b86710d6202e1fd48bf963dca01f9b# Parent  81a02ad99388b6422fd3d9604611638c1b0420b5
8-) f**k

diff -r 7800811078b8 -r dddb9348ea42 ucx/map.c
--- a/ucx/map.c	Mon Aug 12 14:39:51 2013 +0200
+++ b/ucx/map.c	Mon Aug 12 14:43:22 2013 +0200
@@ -32,10 +32,10 @@
 #include "map.h"
 
 UcxMap *ucx_map_new(size_t size) {
-    return ucx_map_new_a(size, NULL);
+    return ucx_map_new_a(NULL, size);
 }
 
-UcxMap *ucx_map_new_a(size_t size, UcxAllocator *allocator) {
+UcxMap *ucx_map_new_a(UcxAllocator *allocator, size_t size) {
     if(size == 0) {
         size = 16;
     }
@@ -45,7 +45,7 @@
     }
     
     UcxMap *map = (UcxMap*)allocator->malloc(allocator->pool, sizeof(UcxMap));
-    if(map == NULL) {
+    if (!map) {
         return NULL;
     }
     
diff -r 7800811078b8 -r dddb9348ea42 ucx/map.h
--- a/ucx/map.h	Mon Aug 12 14:39:51 2013 +0200
+++ b/ucx/map.h	Mon Aug 12 14:43:22 2013 +0200
@@ -130,11 +130,11 @@
 
 /**
  * Creates a new hash map with the specified size using an UcxAllocator.
+ * @param allocator the allocator to use
  * @param size the size of the hash map
- * @param allocator the allocator to use
  * @return a pointer to the new hash map
  */
-UcxMap *ucx_map_new_a(size_t size, UcxAllocator *allocator);
+UcxMap *ucx_map_new_a(UcxAllocator *allocator, size_t size);
 
 /**
  * Frees a hash map.