diff options
author | Martin Willi <martin@strongswan.org> | 2006-10-24 14:20:45 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-10-24 14:20:45 +0000 |
commit | 191a26a6a713e81361bd677bb0297744f03e4f36 (patch) | |
tree | 95bbdbc6be919e5748ddcab93d985592f264e593 /src/charon/threads/kernel_interface.c | |
parent | 55bbff11ec96f74b27afc36dd8ca3e34ff425b40 (diff) | |
download | strongswan-191a26a6a713e81361bd677bb0297744f03e4f36.tar.bz2 strongswan-191a26a6a713e81361bd677bb0297744f03e4f36.tar.xz |
removed deprecated iterator methods (has_next & current)
added iterator hook to manipulate iterator the clean way
Diffstat (limited to 'src/charon/threads/kernel_interface.c')
-rw-r--r-- | src/charon/threads/kernel_interface.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/charon/threads/kernel_interface.c b/src/charon/threads/kernel_interface.c index 5c220b0c8..b18d9aea2 100644 --- a/src/charon/threads/kernel_interface.c +++ b/src/charon/threads/kernel_interface.c @@ -266,14 +266,14 @@ static status_t send_message(private_kernel_interface_t *this, while (TRUE) { - iterator_t *iterator; + iterator_t *iterator; + struct nlmsghdr *listed_response; bool found = FALSE; + /* search list, break if found */ iterator = this->responses->create_iterator(this->responses, TRUE); - while (iterator->has_next(iterator)) + while (iterator->iterate(iterator, (void**)&listed_response)) { - struct nlmsghdr *listed_response; - iterator->current(iterator, (void**)&listed_response); if (listed_response->nlmsg_seq == request->nlmsg_seq) { /* matches our request, this is the reply */ |