summaryrefslogtreecommitdiff
path: root/crypto/err/err_prn.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-06-25 10:09:55 +0000
committerBodo Möller <bodo@openssl.org>2001-06-25 10:09:55 +0000
commit6a184a60986285cd98cfa1ef54e1dcad213e8c93 (patch)
tree9fa5778f4ef406f582660e584a4998aaafe1c1da /crypto/err/err_prn.c
parent3d5e97f5601b31e36b648fbcf7ea0be7eb0c6356 (diff)
downloadopenssl-new-6a184a60986285cd98cfa1ef54e1dcad213e8c93.tar.gz
Translate into valid C (don't call functions with wrong prototypes).
Diffstat (limited to 'crypto/err/err_prn.c')
-rw-r--r--crypto/err/err_prn.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/crypto/err/err_prn.c b/crypto/err/err_prn.c
index b5895a4c6f..c156663f0e 100644
--- 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
-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)
{
- ERR_print_errors_cb(
- (int (*)(const char *, size_t, void *))print_fp,
- (void *)fp);
+ ERR_print_errors_cb(print_fp, fp);
}
#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)
{
- ERR_print_errors_cb(
- (int (*)(const char *, size_t, void *))print_bio,
- (void *)bp);
+ ERR_print_errors_cb(print_bio, bp);
}