strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87e7f9d
)
- fixed bug
author
Jan Hutter
<jhutter@hsr.ch>
Thu, 10 Nov 2005 14:21:09 +0000
(14:21 -0000)
committer
Jan Hutter
<jhutter@hsr.ch>
Thu, 10 Nov 2005 14:21:09 +0000
(14:21 -0000)
Source/charon/allocator.h
patch
|
blob
|
history
diff --git
a/Source/charon/allocator.h
b/Source/charon/allocator.h
index
d81066e
..
fdc2b1f
100644
(file)
--- 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))