Returns now GNUNET_SYSERR
[oweals/gnunet.git] / src / util / common_allocation.c
index e62c12d086254b014391076ddf4800ab141148d1..92cbc974773ad3154bfdca3f9af7233af335527f 100644 (file)
@@ -103,6 +103,7 @@ GNUNET_xmalloc_unchecked_ (size_t size, const char *filename, int linenumber)
   return result;
 }
 
+
 /**
  * Reallocate memory. Checks the return value, aborts if no more
  * memory is available.
@@ -115,11 +116,7 @@ GNUNET_xmalloc_unchecked_ (size_t size, const char *filename, int linenumber)
  */
 void *
 GNUNET_xrealloc_ (void *ptr,
-#ifndef W32_MEM_LIMIT
-                  const size_t n,
-#else
                   size_t n,
-#endif
                   const char *filename, int linenumber)
 {
 #ifdef W32_MEM_LIMIT
@@ -139,6 +136,7 @@ GNUNET_xrealloc_ (void *ptr,
   return ptr;
 }
 
+
 /**
  * Free memory. Merely a wrapper for the case that we
  * want to keep track of allocations.