diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-11-09 09:35:06 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-11-09 09:35:06 +0000 |
commit | 6c4b815f22341ad3c2574b42a64b39e16ef1e7c7 (patch) | |
tree | 57c322fecce2b837b34654758a0e394ffdfaa90e /Source/charon/tests/receiver_test.c | |
parent | 79538669625bbae26fcef5d791b2246242c5a407 (diff) | |
download | strongswan-6c4b815f22341ad3c2574b42a64b39e16ef1e7c7.tar.bz2 strongswan-6c4b815f22341ad3c2574b42a64b39e16ef1e7c7.tar.xz |
- memory allocation now works with allocator-functions...
Diffstat (limited to 'Source/charon/tests/receiver_test.c')
-rw-r--r-- | Source/charon/tests/receiver_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/charon/tests/receiver_test.c b/Source/charon/tests/receiver_test.c index 59ab540b5..2c3556d16 100644 --- a/Source/charon/tests/receiver_test.c +++ b/Source/charon/tests/receiver_test.c @@ -23,6 +23,7 @@ #include <string.h> #include <unistd.h> +#include "../allocator.h" #include "sender_test.h" #include "../globals.h" #include "../receiver.h" @@ -59,7 +60,7 @@ void test_receiver(tester_t *tester) { packet = packet_create(AF_INET); packet->set_destination(packet,DESTINATION_IP,PORT_TO_SEND); - packet->data.ptr = allocator_alloc_thing(int, "packet data"); + packet->data.ptr = allocator_alloc_thing(int); packet->data.len = ( sizeof(int)); *((int *) (packet->data.ptr)) = i; global_socket->send(global_socket,packet); |