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
commiteec14d8d3f7d92f0ebb0c75eee2dd01d652949d0 (patch)
tree039bc1f1e47623f1bbe9d4e2d08ce2b38304c288 /src/lib/libcrypto/pqueue/pqueue.c
parentf2f522b2b79acd8c281f8ea853ed7fadd5b907a5 (diff)
parent217868ba06006584e019bb825f91c811747a4cba (diff)
downloadopenbsd-eec14d8d3f7d92f0ebb0c75eee2dd01d652949d0.tar.gz
openbsd-eec14d8d3f7d92f0ebb0c75eee2dd01d652949d0.tar.bz2
openbsd-eec14d8d3f7d92f0ebb0c75eee2dd01d652949d0.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 {