aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/allocator.h
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-10 14:21:09 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-10 14:21:09 +0000
commit8d033e97346ee6c762096090c12b60c2167e926f (patch)
treee17fd82f6d88252d2176b00a36ccc42ba52999ea /Source/charon/allocator.h
parent87e7f9d74064fec4f29556bc9f6b0140680f989a (diff)
downloadstrongswan-8d033e97346ee6c762096090c12b60c2167e926f.tar.bz2
strongswan-8d033e97346ee6c762096090c12b60c2167e926f.tar.xz
- fixed bug
Diffstat (limited to 'Source/charon/allocator.h')
-rw-r--r--Source/charon/allocator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/charon/allocator.h b/Source/charon/allocator.h
index d81066e7f..fdc2b1f9e 100644
--- a/Source/charon/allocator.h
+++ b/Source/charon/allocator.h
@@ -24,6 +24,7 @@
#ifndef ALLOCATOR_H_
#define ALLOCATOR_H_
+#include <stdlib.h>
#include <stddef.h>
#include "types.h"
@@ -213,7 +214,7 @@
chunk_t new_chunk; \
new_chunk.ptr = malloc(bytes); \
new_chunk.len = (new_chunk.ptr == NULL) ? 0 : bytes; \
- return new_chunk;
+ return new_chunk; \
}
#define allocator_realloc(old,bytes) (realloc(old,bytes))
#define allocator_free(pointer) (free(pointer))