aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/tests/socket_test.c
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-09 09:35:06 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-09 09:35:06 +0000
commit6c4b815f22341ad3c2574b42a64b39e16ef1e7c7 (patch)
tree57c322fecce2b837b34654758a0e394ffdfaa90e /Source/charon/tests/socket_test.c
parent79538669625bbae26fcef5d791b2246242c5a407 (diff)
downloadstrongswan-6c4b815f22341ad3c2574b42a64b39e16ef1e7c7.tar.bz2
strongswan-6c4b815f22341ad3c2574b42a64b39e16ef1e7c7.tar.xz
- memory allocation now works with allocator-functions...
Diffstat (limited to 'Source/charon/tests/socket_test.c')
-rw-r--r--Source/charon/tests/socket_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/charon/tests/socket_test.c b/Source/charon/tests/socket_test.c
index ea61e5f3c..127390394 100644
--- a/Source/charon/tests/socket_test.c
+++ b/Source/charon/tests/socket_test.c
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <string.h>
+#include "../allocator.h"
#include "socket_test.h"
#include "../tester.h"
#include "../socket.h"
@@ -39,7 +40,7 @@ void test_socket(tester_t *tester)
char *test_string = "Testing functionality of socket_t";
- pkt->data.ptr = allocator_alloc(strlen(test_string) + 1,"test_string");
+ pkt->data.ptr = allocator_alloc(strlen(test_string) + 1);
memcpy(pkt->data.ptr,test_string,strlen(test_string) + 1);
pkt->data.len = strlen(test_string) + 1;