summaryrefslogtreecommitdiffstats
path: root/crypto/bio/bio_meth.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-10-21 15:15:51 +0100
committerMatt Caswell <matt@openssl.org>2016-10-28 09:48:54 +0100
commit42c6046064d2ee45d59baec53bedde4ea434294f (patch)
treef89d9b3365cf44e739850ac6a75ac63a328acd29 /crypto/bio/bio_meth.c
parentf42fd819d60c5ebbcfd7bff6173b89664ab2fde1 (diff)
More parameter naming of BIO_read*/BIO_write* related functions
Based on feedback received. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/bio/bio_meth.c')
-rw-r--r--crypto/bio/bio_meth.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/crypto/bio/bio_meth.c b/crypto/bio/bio_meth.c
index ea3155f3fa..5eaa1fd461 100644
--- a/crypto/bio/bio_meth.c
+++ b/crypto/bio/bio_meth.c
@@ -61,14 +61,14 @@ int (*BIO_meth_get_write_ex(BIO_METHOD *biom)) (BIO *, const char *, size_t,
}
/* Conversion for old style bwrite to new style */
-int bwrite_conv(BIO *bio, const char *in, size_t inl, size_t *written)
+int bwrite_conv(BIO *bio, const char *data, size_t datal, size_t *written)
{
int ret;
- if (inl > INT_MAX)
- inl = INT_MAX;
+ if (datal > INT_MAX)
+ datal = INT_MAX;
- ret = bio->method->bwrite_old(bio, in, (int)inl);
+ ret = bio->method->bwrite_old(bio, data, (int)datal);
if (ret <= 0) {
*written = 0;
@@ -107,14 +107,14 @@ int (*BIO_meth_get_read_ex(BIO_METHOD *biom)) (BIO *, char *, size_t, size_t *)
}
/* Conversion for old style bread to new style */
-int bread_conv(BIO *bio, char *out, size_t outl, size_t *read)
+int bread_conv(BIO *bio, char *data, size_t datal, size_t *read)
{
int ret;
- if (outl > INT_MAX)
- outl = INT_MAX;
+ if (datal > INT_MAX)
+ datal = INT_MAX;
- ret = bio->method->bread_old(bio, out, (int)outl);
+ ret = bio->method->bread_old(bio, data, (int)datal);
if (ret <= 0) {
*read = 0;