gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r38083 - in gnunet/src: include util


From: gnunet
Subject: [GNUnet-SVN] r38083 - in gnunet/src: include util
Date: Sun, 9 Oct 2016 13:38:55 +0200

Author: teichm
Date: 2016-10-09 13:38:55 +0200 (Sun, 09 Oct 2016)
New Revision: 38083

Modified:
   gnunet/src/include/gnunet_common.h
   gnunet/src/util/common_allocation.c
Log:
libgnunetutil: fix doc and indentation for realloc

Modified: gnunet/src/include/gnunet_common.h
===================================================================
--- gnunet/src/include/gnunet_common.h  2016-10-07 14:06:00 UTC (rev 38082)
+++ gnunet/src/include/gnunet_common.h  2016-10-09 11:38:55 UTC (rev 38083)
@@ -854,7 +854,8 @@
 
 /**
  * @ingroup memory
- * Wrapper around realloc. Rellocates size bytes of memory.
+ * Wrapper around realloc. Reallocates size bytes of memory.
+ * The content of the intersection of the new and old size will be unchanged.
  *
  * @param ptr the pointer to reallocate
  * @param size the number of bytes to reallocate

Modified: gnunet/src/util/common_allocation.c
===================================================================
--- gnunet/src/util/common_allocation.c 2016-10-07 14:06:00 UTC (rev 38082)
+++ gnunet/src/util/common_allocation.c 2016-10-09 11:38:55 UTC (rev 38083)
@@ -234,6 +234,7 @@
 /**
  * Reallocate memory. Checks the return value, aborts if no more
  * memory is available.
+ * The content of the intersection of the new and old size will be unchanged.
  *
  * @param ptr the pointer to reallocate
  * @param n how many bytes of memory to allocate
@@ -243,9 +244,9 @@
  */
 void *
 GNUNET_xrealloc_ (void *ptr,
-                 size_t n,
-                 const char *filename,
-                 int linenumber)
+                  size_t n,
+                  const char *filename,
+                  int linenumber)
 {
 #ifdef W32_MEM_LIMIT
   n += sizeof (size_t);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]