Some more tweaks to ENGINE code.
[openssl.git] / crypto / lhash / lh_stats.c
index 23fe82f7778e76d71cbd2887890558840a186ca5..bdfbc8eaea7207ff82efe070d7784b59936a8e40 100644 (file)
  * and things should work as expected */
 #include "cryptlib.h"
 
-#include "lhash.h"
+#ifndef OPENSSL_NO_BIO
+#include <openssl/bio.h>
+#endif
+#include <openssl/lhash.h>
 
-#ifndef HEADER_BIO_H
+#ifdef OPENSSL_NO_BIO
 
-void lh_stats(lh, out)
-LHASH *lh;
-FILE *out;
+void lh_stats(LHASH *lh, FILE *out)
        {
        fprintf(out,"num_items             = %lu\n",lh->num_items);
        fprintf(out,"num_nodes             = %u\n",lh->num_nodes);
@@ -95,9 +96,7 @@ FILE *out;
 #endif
        }
 
-void lh_node_stats(lh, out)
-LHASH *lh;
-FILE *out;
+void lh_node_stats(LHASH *lh, FILE *out)
        {
        LHASH_NODE *n;
        unsigned int i,num;
@@ -110,9 +109,7 @@ FILE *out;
                }
        }
 
-void lh_node_usage_stats(lh, out)
-LHASH *lh;
-FILE *out;
+void lh_node_usage_stats(LHASH *lh, FILE *out)
        {
        LHASH_NODE *n;
        unsigned long num;
@@ -141,10 +138,8 @@ FILE *out;
 
 #else
 
-#ifndef NO_FP_API
-void lh_stats(lh,fp)
-LHASH *lh;
-FILE *fp;
+#ifndef OPENSSL_NO_FP_API
+void lh_stats(const LHASH *lh, FILE *fp)
        {
        BIO *bp;
 
@@ -156,9 +151,7 @@ FILE *fp;
 end:;
        }
 
-void lh_node_stats(lh,fp)
-LHASH *lh;
-FILE *fp;
+void lh_node_stats(const LHASH *lh, FILE *fp)
        {
        BIO *bp;
 
@@ -170,9 +163,7 @@ FILE *fp;
 end:;
        }
 
-void lh_node_usage_stats(lh,fp)
-LHASH *lh;
-FILE *fp;
+void lh_node_usage_stats(const LHASH *lh, FILE *fp)
        {
        BIO *bp;
 
@@ -186,9 +177,7 @@ end:;
 
 #endif
 
-void lh_stats_bio(lh, out)
-LHASH *lh;
-BIO *out;
+void lh_stats_bio(const LHASH *lh, BIO *out)
        {
        char buf[128];
 
@@ -236,9 +225,7 @@ BIO *out;
 #endif
        }
 
-void lh_node_stats_bio(lh, out)
-LHASH *lh;
-BIO *out;
+void lh_node_stats_bio(const LHASH *lh, BIO *out)
        {
        LHASH_NODE *n;
        unsigned int i,num;
@@ -253,9 +240,7 @@ BIO *out;
                }
        }
 
-void lh_node_usage_stats_bio(lh, out)
-LHASH *lh;
-BIO *out;
+void lh_node_usage_stats_bio(const LHASH *lh, BIO *out)
        {
        LHASH_NODE *n;
        unsigned long num;