summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/pqueue/pqueue.c
diff options
context:
space:
mode:
authordjm <>2011-11-03 02:32:21 +0000
committerdjm <>2011-11-03 02:32:21 +0000
commit154527e9cde3004ed29ea1316880670ec73dcafa (patch)
tree039bc1f1e47623f1bbe9d4e2d08ce2b38304c288 /src/lib/libcrypto/pqueue/pqueue.c
parent9a7b3d0a0771900cbef9da83983d105d060ad02e (diff)
parent074782d395f8a140cd5120b87574dcd928bacd24 (diff)
downloadopenbsd-154527e9cde3004ed29ea1316880670ec73dcafa.tar.gz
openbsd-154527e9cde3004ed29ea1316880670ec73dcafa.tar.bz2
openbsd-154527e9cde3004ed29ea1316880670ec73dcafa.zip
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to 'src/lib/libcrypto/pqueue/pqueue.c')
-rw-r--r--src/lib/libcrypto/pqueue/pqueue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/pqueue/pqueue.c b/src/lib/libcrypto/pqueue/pqueue.c
index 99a6fb874d..eab13a1250 100644
--- a/src/lib/libcrypto/pqueue/pqueue.c
+++ b/src/lib/libcrypto/pqueue/pqueue.c
@@ -167,14 +167,13 @@ pqueue_pop(pqueue_s *pq)
167pitem * 167pitem *
168pqueue_find(pqueue_s *pq, unsigned char *prio64be) 168pqueue_find(pqueue_s *pq, unsigned char *prio64be)
169 { 169 {
170 pitem *next, *prev = NULL; 170 pitem *next;
171 pitem *found = NULL; 171 pitem *found = NULL;
172 172
173 if ( pq->items == NULL) 173 if ( pq->items == NULL)
174 return NULL; 174 return NULL;
175 175
176 for ( next = pq->items; next->next != NULL; 176 for ( next = pq->items; next->next != NULL; next = next->next)
177 prev = next, next = next->next)
178 { 177 {
179 if ( memcmp(next->priority, prio64be,8) == 0) 178 if ( memcmp(next->priority, prio64be,8) == 0)
180 { 179 {