summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/pqueue/pqueue.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2011-11-03 02:32:05 +0000
committerdjm <djm@openbsd.org>2011-11-03 02:32:05 +0000
commit9a0dbe41377d72a7998b367a28479878b89b8ff5 (patch)
treeb510889687301e3de163d2ff7ca3f9e40804c56c /lib/libcrypto/pqueue/pqueue.c
parentdisplay AMD/extended (0x80000001) cpuid flags and remove the (diff)
downloadwireguard-openbsd-9a0dbe41377d72a7998b367a28479878b89b8ff5.tar.xz
wireguard-openbsd-9a0dbe41377d72a7998b367a28479878b89b8ff5.zip
import OpenSSL 1.0.0e
Diffstat (limited to 'lib/libcrypto/pqueue/pqueue.c')
-rw-r--r--lib/libcrypto/pqueue/pqueue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libcrypto/pqueue/pqueue.c b/lib/libcrypto/pqueue/pqueue.c
index 99a6fb874dc..eab13a12501 100644
--- a/lib/libcrypto/pqueue/pqueue.c
+++ b/lib/libcrypto/pqueue/pqueue.c
@@ -167,14 +167,13 @@ pqueue_pop(pqueue_s *pq)
pitem *
pqueue_find(pqueue_s *pq, unsigned char *prio64be)
{
- pitem *next, *prev = NULL;
+ pitem *next;
pitem *found = NULL;
if ( pq->items == NULL)
return NULL;
- for ( next = pq->items; next->next != NULL;
- prev = next, next = next->next)
+ for ( next = pq->items; next->next != NULL; next = next->next)
{
if ( memcmp(next->priority, prio64be,8) == 0)
{