summaryrefslogtreecommitdiffstats
path: root/crypto/bio/b_print.c
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>1999-05-05 12:35:27 +0000
committerUlf Möller <ulf@openssl.org>1999-05-05 12:35:27 +0000
commit4565c3e36f5d1b74a0bdad03aa5b8c63744340a2 (patch)
treef55007befc849420a37d05af1f8648201a3c2d74 /crypto/bio/b_print.c
parent5fd1e150f7db742e64f23c4358deed4cd0863b69 (diff)
Use ANSI stdarg.
Diffstat (limited to 'crypto/bio/b_print.c')
-rw-r--r--crypto/bio/b_print.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c
index 5fb89d4c2c..f448004298 100644
--- a/crypto/bio/b_print.c
+++ b/crypto/bio/b_print.c
@@ -61,32 +61,27 @@
*/
#include <stdio.h>
+#include <stdarg.h>
#include "cryptlib.h"
#include <openssl/bio.h>
-int BIO_printf ( VAR_PLIST( BIO *, bio ) )
-VAR_ALIST
+int BIO_printf (BIO *bio, ...)
{
- VAR_BDEFN(args, BIO *, bio);
+ va_list args;
char *format;
int ret;
MS_STATIC char hugebuf[1024*2]; /* 10k in one chunk is the limit */
- VAR_INIT(args, BIO *, bio);
- VAR_ARG(args, char *, format);
+ va_start(args, bio);
+ format=va_arg(args, char *);
hugebuf[0]='\0';
-/* no-one uses _doprnt anymore and it appears to be broken under SunOS 4.1.4 */
-#if 0 && defined(sun) && !defined(VAR_ANSI) /**/
- _doprnt(hugebuf,format,args);
-#else /* !sun */
vsprintf(hugebuf,format,args);
-#endif /* sun */
ret=BIO_write(bio,hugebuf,strlen(hugebuf));
- VAR_END( args );
+ va_end(args);
return(ret);
}