aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_allocation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-07-02 21:05:43 +0000
committerChristian Grothoff <christian@grothoff.org>2010-07-02 21:05:43 +0000
commitba9c0e16195d8468f0a9c080e658f3d3f2131c6a (patch)
treed5ca467343b4f85b04474de784c63b479262831e /src/util/common_allocation.c
parent3951bd96d608ab0f88ccb5a7b4b7e94e15d91a89 (diff)
downloadgnunet-ba9c0e16195d8468f0a9c080e658f3d3f2131c6a.tar.gz
gnunet-ba9c0e16195d8468f0a9c080e658f3d3f2131c6a.zip
fixing calculations and code for buffer realloc
Diffstat (limited to 'src/util/common_allocation.c')
-rw-r--r--src/util/common_allocation.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c
index e62c12d08..21c4690bf 100644
--- a/src/util/common_allocation.c
+++ b/src/util/common_allocation.c
@@ -103,6 +103,7 @@ GNUNET_xmalloc_unchecked_ (size_t size, const char *filename, int linenumber)
103 return result; 103 return result;
104} 104}
105 105
106
106/** 107/**
107 * Reallocate memory. Checks the return value, aborts if no more 108 * Reallocate memory. Checks the return value, aborts if no more
108 * memory is available. 109 * memory is available.
@@ -139,6 +140,7 @@ GNUNET_xrealloc_ (void *ptr,
139 return ptr; 140 return ptr;
140} 141}
141 142
143
142/** 144/**
143 * Free memory. Merely a wrapper for the case that we 145 * Free memory. Merely a wrapper for the case that we
144 * want to keep track of allocations. 146 * want to keep track of allocations.