commit | 8d932f6fd7df8a622f3cb998dab1529247158706 | [log] [tgz] |
---|---|---|
author | Dr. Stephen Henson <steve@openssl.org> | Sat May 16 16:18:19 2009 +0000 |
committer | Dr. Stephen Henson <steve@openssl.org> | Sat May 16 16:18:19 2009 +0000 |
tree | 0b9e0c09f30a0e3dccbd5c6c2314e56ee87b63da | |
parent | 48fd490c6d3c0e5dcfb2f2464ce84adb6bc3ec7e [diff] [blame] |
Update from 1.0.0-stable
diff --git a/crypto/pqueue/pqueue.c b/crypto/pqueue/pqueue.c index c20bc6f..99a6fb8 100644 --- a/crypto/pqueue/pqueue.c +++ b/crypto/pqueue/pqueue.c
@@ -237,3 +237,17 @@ return ret; } + +int +pqueue_size(pqueue_s *pq) +{ + pitem *item = pq->items; + int count = 0; + + while(item != NULL) + { + count++; + item = item->next; + } + return count; +}