summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/lhash/lh_stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/lhash/lh_stats.c')
-rw-r--r--src/lib/libcrypto/lhash/lh_stats.c38
1 files changed, 10 insertions, 28 deletions
diff --git a/src/lib/libcrypto/lhash/lh_stats.c b/src/lib/libcrypto/lhash/lh_stats.c
index 23fe82f777..80b931c12b 100644
--- a/src/lib/libcrypto/lhash/lh_stats.c
+++ b/src/lib/libcrypto/lhash/lh_stats.c
@@ -63,13 +63,11 @@
63 * and things should work as expected */ 63 * and things should work as expected */
64#include "cryptlib.h" 64#include "cryptlib.h"
65 65
66#include "lhash.h" 66#include <openssl/lhash.h>
67 67
68#ifndef HEADER_BIO_H 68#ifndef HEADER_BIO_H
69 69
70void lh_stats(lh, out) 70void lh_stats(LHASH *lh, FILE *out)
71LHASH *lh;
72FILE *out;
73 { 71 {
74 fprintf(out,"num_items = %lu\n",lh->num_items); 72 fprintf(out,"num_items = %lu\n",lh->num_items);
75 fprintf(out,"num_nodes = %u\n",lh->num_nodes); 73 fprintf(out,"num_nodes = %u\n",lh->num_nodes);
@@ -95,9 +93,7 @@ FILE *out;
95#endif 93#endif
96 } 94 }
97 95
98void lh_node_stats(lh, out) 96void lh_node_stats(LHASH *lh, FILE *out)
99LHASH *lh;
100FILE *out;
101 { 97 {
102 LHASH_NODE *n; 98 LHASH_NODE *n;
103 unsigned int i,num; 99 unsigned int i,num;
@@ -110,9 +106,7 @@ FILE *out;
110 } 106 }
111 } 107 }
112 108
113void lh_node_usage_stats(lh, out) 109void lh_node_usage_stats(LHASH *lh, FILE *out)
114LHASH *lh;
115FILE *out;
116 { 110 {
117 LHASH_NODE *n; 111 LHASH_NODE *n;
118 unsigned long num; 112 unsigned long num;
@@ -142,9 +136,7 @@ FILE *out;
142#else 136#else
143 137
144#ifndef NO_FP_API 138#ifndef NO_FP_API
145void lh_stats(lh,fp) 139void lh_stats(LHASH *lh, FILE *fp)
146LHASH *lh;
147FILE *fp;
148 { 140 {
149 BIO *bp; 141 BIO *bp;
150 142
@@ -156,9 +148,7 @@ FILE *fp;
156end:; 148end:;
157 } 149 }
158 150
159void lh_node_stats(lh,fp) 151void lh_node_stats(LHASH *lh, FILE *fp)
160LHASH *lh;
161FILE *fp;
162 { 152 {
163 BIO *bp; 153 BIO *bp;
164 154
@@ -170,9 +160,7 @@ FILE *fp;
170end:; 160end:;
171 } 161 }
172 162
173void lh_node_usage_stats(lh,fp) 163void lh_node_usage_stats(LHASH *lh, FILE *fp)
174LHASH *lh;
175FILE *fp;
176 { 164 {
177 BIO *bp; 165 BIO *bp;
178 166
@@ -186,9 +174,7 @@ end:;
186 174
187#endif 175#endif
188 176
189void lh_stats_bio(lh, out) 177void lh_stats_bio(LHASH *lh, BIO *out)
190LHASH *lh;
191BIO *out;
192 { 178 {
193 char buf[128]; 179 char buf[128];
194 180
@@ -236,9 +222,7 @@ BIO *out;
236#endif 222#endif
237 } 223 }
238 224
239void lh_node_stats_bio(lh, out) 225void lh_node_stats_bio(LHASH *lh, BIO *out)
240LHASH *lh;
241BIO *out;
242 { 226 {
243 LHASH_NODE *n; 227 LHASH_NODE *n;
244 unsigned int i,num; 228 unsigned int i,num;
@@ -253,9 +237,7 @@ BIO *out;
253 } 237 }
254 } 238 }
255 239
256void lh_node_usage_stats_bio(lh, out) 240void lh_node_usage_stats_bio(LHASH *lh, BIO *out)
257LHASH *lh;
258BIO *out;
259 { 241 {
260 LHASH_NODE *n; 242 LHASH_NODE *n;
261 unsigned long num; 243 unsigned long num;