diff options
Diffstat (limited to 'src/lib/libcrypto/lhash/lh_stats.c')
-rw-r--r-- | src/lib/libcrypto/lhash/lh_stats.c | 38 |
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 | ||
70 | void lh_stats(lh, out) | 70 | void lh_stats(LHASH *lh, FILE *out) |
71 | LHASH *lh; | ||
72 | FILE *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 | ||
98 | void lh_node_stats(lh, out) | 96 | void lh_node_stats(LHASH *lh, FILE *out) |
99 | LHASH *lh; | ||
100 | FILE *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 | ||
113 | void lh_node_usage_stats(lh, out) | 109 | void lh_node_usage_stats(LHASH *lh, FILE *out) |
114 | LHASH *lh; | ||
115 | FILE *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 |
145 | void lh_stats(lh,fp) | 139 | void lh_stats(LHASH *lh, FILE *fp) |
146 | LHASH *lh; | ||
147 | FILE *fp; | ||
148 | { | 140 | { |
149 | BIO *bp; | 141 | BIO *bp; |
150 | 142 | ||
@@ -156,9 +148,7 @@ FILE *fp; | |||
156 | end:; | 148 | end:; |
157 | } | 149 | } |
158 | 150 | ||
159 | void lh_node_stats(lh,fp) | 151 | void lh_node_stats(LHASH *lh, FILE *fp) |
160 | LHASH *lh; | ||
161 | FILE *fp; | ||
162 | { | 152 | { |
163 | BIO *bp; | 153 | BIO *bp; |
164 | 154 | ||
@@ -170,9 +160,7 @@ FILE *fp; | |||
170 | end:; | 160 | end:; |
171 | } | 161 | } |
172 | 162 | ||
173 | void lh_node_usage_stats(lh,fp) | 163 | void lh_node_usage_stats(LHASH *lh, FILE *fp) |
174 | LHASH *lh; | ||
175 | FILE *fp; | ||
176 | { | 164 | { |
177 | BIO *bp; | 165 | BIO *bp; |
178 | 166 | ||
@@ -186,9 +174,7 @@ end:; | |||
186 | 174 | ||
187 | #endif | 175 | #endif |
188 | 176 | ||
189 | void lh_stats_bio(lh, out) | 177 | void lh_stats_bio(LHASH *lh, BIO *out) |
190 | LHASH *lh; | ||
191 | BIO *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 | ||
239 | void lh_node_stats_bio(lh, out) | 225 | void lh_node_stats_bio(LHASH *lh, BIO *out) |
240 | LHASH *lh; | ||
241 | BIO *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 | ||
256 | void lh_node_usage_stats_bio(lh, out) | 240 | void lh_node_usage_stats_bio(LHASH *lh, BIO *out) |
257 | LHASH *lh; | ||
258 | BIO *out; | ||
259 | { | 241 | { |
260 | LHASH_NODE *n; | 242 | LHASH_NODE *n; |
261 | unsigned long num; | 243 | unsigned long num; |