projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3d5e97f
)
Translate into valid C (don't call functions with wrong prototypes).
author
Bodo Möller
<bodo@openssl.org>
Mon, 25 Jun 2001 10:09:55 +0000
(10:09 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Mon, 25 Jun 2001 10:09:55 +0000
(10:09 +0000)
crypto/err/err_prn.c
patch
|
blob
|
history
diff --git
a/crypto/err/err_prn.c
b/crypto/err/err_prn.c
index b5895a4c6f9d2ba5420198055f5e811b1aac7fc0..c156663f0effabec98b5d9cb33d85193874f8d22 100644
(file)
--- a/
crypto/err/err_prn.c
+++ b/
crypto/err/err_prn.c
@@
-85,27
+85,23
@@
void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u),
}
#ifndef OPENSSL_NO_FP_API
}
#ifndef OPENSSL_NO_FP_API
-static int print_fp(const char *str, size_t len,
FILE
*fp)
+static int print_fp(const char *str, size_t len,
void
*fp)
{
{
- return fprintf(fp, "%s", str);
+ return fprintf(
(FILE *)
fp, "%s", str);
}
void ERR_print_errors_fp(FILE *fp)
{
}
void ERR_print_errors_fp(FILE *fp)
{
- ERR_print_errors_cb(
- (int (*)(const char *, size_t, void *))print_fp,
- (void *)fp);
+ ERR_print_errors_cb(print_fp, fp);
}
#endif
}
#endif
-static int print_bio(const char *str, size_t len,
BIO
*bp)
+static int print_bio(const char *str, size_t len,
void
*bp)
{
{
- return BIO_write(bp, str, len);
+ return BIO_write(
(BIO *)
bp, str, len);
}
void ERR_print_errors(BIO *bp)
{
}
void ERR_print_errors(BIO *bp)
{
- ERR_print_errors_cb(
- (int (*)(const char *, size_t, void *))print_bio,
- (void *)bp);
+ ERR_print_errors_cb(print_bio, bp);
}
}