Update util/ck_errf.pl script, and have it run automatically
[openssl.git] / crypto / pqueue / pqueue.c
index 4cd9987919da471438d55728ed0edbea4ddddbed..f4fa37fe64bb07ac4b53bbe08a36fd935132eff4 100644 (file)
@@ -57,8 +57,9 @@
  *
  */
 
+#include "cryptlib.h"
+#include <openssl/bn.h>
 #include "pqueue.h"
-#include "crypto.h"
 
 typedef struct _pqueue
        {
@@ -67,7 +68,7 @@ typedef struct _pqueue
        } pqueue_s;
 
 pitem *
-pitem_new(unsigned long long priority, void *data)
+pitem_new(BN_ULLONG priority, void *data)
        {
        pitem *item = (pitem *) OPENSSL_malloc(sizeof(pitem));
        if (item == NULL) return NULL;
@@ -160,7 +161,7 @@ pqueue_pop(pqueue_s *pq)
        }
 
 pitem *
-pqueue_find(pqueue_s *pq, unsigned long long priority)
+pqueue_find(pqueue_s *pq, BN_ULLONG priority)
        {
        pitem *next, *prev = NULL;
        pitem *found = NULL;