projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update from 1.0.0-stable.
[openssl.git]
/
crypto
/
pqueue
/
pqueue.c
diff --git
a/crypto/pqueue/pqueue.c
b/crypto/pqueue/pqueue.c
index 5cc18527f8da8f1e80084ebb4c41b69ff7a061c9..6c89f06fb105303e733474a79af0e921a745ee4c 100644
(file)
--- a/
crypto/pqueue/pqueue.c
+++ b/
crypto/pqueue/pqueue.c
@@
-234,3
+234,17
@@
pqueue_next(pitem **item)
return ret;
}
+
+int
+pqueue_size(pqueue_s *pq)
+{
+ pitem *item = pq->items;
+ int count = 0;
+
+ while(item != NULL)
+ {
+ count++;
+ item = item->next;
+ }
+ return count;
+}