diff options
Diffstat (limited to 'usr/src/lib/libbc/libc/stdio/sys5/vfprintf.c')
-rw-r--r-- | usr/src/lib/libbc/libc/stdio/sys5/vfprintf.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/usr/src/lib/libbc/libc/stdio/sys5/vfprintf.c b/usr/src/lib/libbc/libc/stdio/sys5/vfprintf.c index 502add53e5..fa4bb97a12 100644 --- a/usr/src/lib/libbc/libc/stdio/sys5/vfprintf.c +++ b/usr/src/lib/libbc/libc/stdio/sys5/vfprintf.c @@ -20,30 +20,26 @@ * CDDL HEADER END */ /* - * Copyright 1988 Sun Microsystems, Inc. All rights reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* Copyright (c) 1984 AT&T */ /* All Rights Reserved */ -#pragma ident "%Z%%M% %I% %E% SMI" /* from S5R2 1.1 */ +#pragma ident "%Z%%M% %I% %E% SMI" /*LINTLIBRARY*/ #include <stdio.h> -#include <varargs.h> +#include <stdarg.h> extern int _doprnt(); -/*VARARGS2*/ int -vfprintf(iop, format, ap) -FILE *iop; -char *format; -va_list ap; +vfprintf(FILE *iop, char *format, va_list ap) { unsigned char localbuf[BUFSIZ]; - register int count; + int count; if (!(iop->_flag & _IOWRT)) { /* if no write flag */ @@ -52,7 +48,7 @@ va_list ap; iop->_flag |= _IOWRT; } else { /* else error */ - return EOF; + return (EOF); } } if (iop->_flag & _IONBF) { @@ -65,7 +61,8 @@ va_list ap; iop->_base = NULL; iop->_bufsiz = 0; iop->_cnt = 0; - } else + } else { count = _doprnt(format, ap, iop); - return(ferror(iop)? EOF: count); + } + return (ferror(iop)? EOF: count); } |