projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Eliminate memory leaks in mem_dbg.c.
[openssl.git]
/
crypto
/
lhash
/
lh_stats.c
diff --git
a/crypto/lhash/lh_stats.c
b/crypto/lhash/lh_stats.c
index 824eb6215c1216f76970b634f153eaf35ed27711..80b931c12b76c6a128822d534666657d764c7997 100644
(file)
--- a/
crypto/lhash/lh_stats.c
+++ b/
crypto/lhash/lh_stats.c
@@
-1,5
+1,5
@@
/* crypto/lhash/lh_stats.c */
/* crypto/lhash/lh_stats.c */
-/* Copyright (C) 1995-199
7
Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-199
8
Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* All rights reserved.
*
* This package is an SSL implementation written
@@
-59,17
+59,15
@@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-/* If you wish to build this outside of SSLeay, remove the following line
+/* If you wish to build this outside of SSLeay, remove the following line
s
* and things should work as expected */
* and things should work as expected */
-#include "
bio
.h"
+#include "
cryptlib
.h"
-#include
"lhash.h"
+#include
<openssl/lhash.h>
#ifndef HEADER_BIO_H
#ifndef HEADER_BIO_H
-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);
{
fprintf(out,"num_items = %lu\n",lh->num_items);
fprintf(out,"num_nodes = %u\n",lh->num_nodes);
@@
-95,9
+93,7
@@
FILE *out;
#endif
}
#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;
{
LHASH_NODE *n;
unsigned int i,num;
@@
-110,9
+106,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;
{
LHASH_NODE *n;
unsigned long num;
@@
-141,10
+135,8
@@
FILE *out;
#else
#else
-#ifndef WIN16
-void lh_stats(lh,fp)
-LHASH *lh;
-FILE *fp;
+#ifndef NO_FP_API
+void lh_stats(LHASH *lh, FILE *fp)
{
BIO *bp;
{
BIO *bp;
@@
-156,9
+148,7
@@
FILE *fp;
end:;
}
end:;
}
-void lh_node_stats(lh,fp)
-LHASH *lh;
-FILE *fp;
+void lh_node_stats(LHASH *lh, FILE *fp)
{
BIO *bp;
{
BIO *bp;
@@
-170,9
+160,7
@@
FILE *fp;
end:;
}
end:;
}
-void lh_node_usage_stats(lh,fp)
-LHASH *lh;
-FILE *fp;
+void lh_node_usage_stats(LHASH *lh, FILE *fp)
{
BIO *bp;
{
BIO *bp;
@@
-186,9
+174,7
@@
end:;
#endif
#endif
-void lh_stats_bio(lh, out)
-LHASH *lh;
-BIO *out;
+void lh_stats_bio(LHASH *lh, BIO *out)
{
char buf[128];
{
char buf[128];
@@
-236,9
+222,7
@@
BIO *out;
#endif
}
#endif
}
-void lh_node_stats_bio(lh, out)
-LHASH *lh;
-BIO *out;
+void lh_node_stats_bio(LHASH *lh, BIO *out)
{
LHASH_NODE *n;
unsigned int i,num;
{
LHASH_NODE *n;
unsigned int i,num;
@@
-253,9
+237,7
@@
BIO *out;
}
}
}
}
-void lh_node_usage_stats_bio(lh, out)
-LHASH *lh;
-BIO *out;
+void lh_node_usage_stats_bio(LHASH *lh, BIO *out)
{
LHASH_NODE *n;
unsigned long num;
{
LHASH_NODE *n;
unsigned long num;