From c9f2b5e884cac0605dd9f2931c7154fb94baeb84 Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Sun, 9 Oct 2016 11:38:55 +0000 Subject: libgnunetutil: fix doc and indentation for realloc --- src/util/common_allocation.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/util/common_allocation.c') diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c index f0299a223..f5b683569 100644 --- a/src/util/common_allocation.c +++ b/src/util/common_allocation.c @@ -234,6 +234,7 @@ GNUNET_xmalloc_unchecked_ (size_t size, /** * 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 @@ GNUNET_xmalloc_unchecked_ (size_t size, */ 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); -- cgit v1.2.3