aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_allocation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/common_allocation.c')
-rw-r--r--src/util/common_allocation.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c
index 27dda5e59..5ff92edc3 100644
--- a/src/util/common_allocation.c
+++ b/src/util/common_allocation.c
@@ -224,9 +224,9 @@ GNUNET_xfree_ (void *ptr, const char *filename, int linenumber)
224 { 224 {
225 const uint64_t baadfood = GNUNET_ntohll (0xBAADF00DBAADF00DLL); 225 const uint64_t baadfood = GNUNET_ntohll (0xBAADF00DBAADF00DLL);
226 uint64_t *base = ptr; 226 uint64_t *base = ptr;
227 size_t s = M_SIZE (ptr); 227 size_t s = M_SIZE (ptr);
228 size_t i; 228 size_t i;
229 229
230 for (i=0;i<s/8;i++) 230 for (i=0;i<s/8;i++)
231 base[i] = baadfood; 231 base[i] = baadfood;
232 memcpy (&base[s/8], &baadfood, s % 8); 232 memcpy (&base[s/8], &baadfood, s % 8);
@@ -258,7 +258,7 @@ GNUNET_xstrdup_ (const char *str, const char *filename, int linenumber)
258 258
259#if ! HAVE_STRNLEN 259#if ! HAVE_STRNLEN
260static size_t 260static size_t
261strnlen (const char *s, 261strnlen (const char *s,
262 size_t n) 262 size_t n)
263{ 263{
264 const char *e; 264 const char *e;