aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bio/b_print.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-02-26 01:45:17 +0000
committerRichard Levitte <levitte@openssl.org>2000-02-26 01:45:17 +0000
commit47c177c7b369ba40aa7f4a56d4b83f4178cf1d9f (patch)
tree53fb1ff66dc654b2077e357287f2b88c72acc678 /crypto/bio/b_print.c
parentb755955a530eb217733660d18980e0a2471a31a6 (diff)
downloadopenssl-47c177c7b369ba40aa7f4a56d4b83f4178cf1d9f.tar.gz
Let's avoid compiler warnings over types.
Actually, this should be resolved by using size_t a bit more, but that'll be for later.
Diffstat (limited to 'crypto/bio/b_print.c')
-rw-r--r--crypto/bio/b_print.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c
index 80dc162ccf..57fa09ee35 100644
--- a/crypto/bio/b_print.c
+++ b/crypto/bio/b_print.c
@@ -82,14 +82,15 @@ int BIO_printf (BIO *bio, ...)
va_list args;
char *format;
int ret;
+ size_t retlen;
MS_STATIC char hugebuf[1024*2]; /* 10k in one chunk is the limit */
va_start(args, bio);
format=va_arg(args, char *);
hugebuf[0]='\0';
- dopr(hugebuf, sizeof(hugebuf), &ret, format, args);
- ret=BIO_write(bio, hugebuf, ret);
+ dopr(hugebuf, sizeof(hugebuf), &retlen, format, args);
+ ret=BIO_write(bio, hugebuf, (int)retlen);
va_end(args);
return(ret);