aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/threads/receiver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/charon/threads/receiver.c')
-rw-r--r--src/charon/threads/receiver.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/charon/threads/receiver.c b/src/charon/threads/receiver.c
index 003569d8a..d60792be9 100644
--- a/src/charon/threads/receiver.c
+++ b/src/charon/threads/receiver.c
@@ -45,13 +45,6 @@ struct private_receiver_t {
* Public part of a receiver_t object.
*/
receiver_t public;
-
- /**
- * @brief Thread function started at creation of the receiver object.
- *
- * @param this calling object
- */
- void (*receive_packets) (private_receiver_t *this);
/**
* Assigned thread.
@@ -114,11 +107,10 @@ receiver_t * receiver_create()
private_receiver_t *this = malloc_thing(private_receiver_t);
this->public.destroy = (void(*)(receiver_t*)) destroy;
- this->receive_packets = receive_packets;
this->logger = logger_manager->get_logger(logger_manager, RECEIVER);
- if (pthread_create(&(this->assigned_thread), NULL, (void*(*)(void*))this->receive_packets, this) != 0)
+ if (pthread_create(&(this->assigned_thread), NULL, (void*(*)(void*))receive_packets, this) != 0)
{
this->logger->log(this->logger, ERROR, "Receiver thread could not be started");
free(this);