Fix a missed size_t variable declaration
authorMatt Caswell <matt@openssl.org>
Fri, 4 Nov 2016 10:26:57 +0000 (10:26 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 4 Nov 2016 12:09:46 +0000 (12:09 +0000)
pqueue_size() now returns a size_t, but the variable that gets returned
was still declared as an int.

Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/pqueue.c

index 9ff4132dcc6c097cdbeaa874001dbb060fd73b72..7e0ced9909a247e8f8399bdb44116ea456c35fa2 100644 (file)
@@ -144,7 +144,7 @@ pitem *pqueue_next(pitem **item)
 size_t pqueue_size(pqueue *pq)
 {
     pitem *item = pq->items;
-    int count = 0;
+    size_t count = 0;
 
     while (item != NULL) {
         count++;