plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 65cd9e4d852426549226519b25cf1f1a78445b04
parent ddb664da1bfebeb348c5c9593b0e9d21462214e6
Author: rsc <devnull@localhost>
Date:   Tue, 28 Dec 2004 03:40:46 +0000

use fmtprint to avoid va_copy

Diffstat:
Msrc/libbio/bprint.c | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/libbio/bprint.c b/src/libbio/bprint.c @@ -10,11 +10,7 @@ Bprint(Biobuf *bp, char *fmt, ...) if(Bfmtinit(&f, bp) < 0) return -1; - va_start(args, fmt); - va_copy(f.args, args); - n = dofmt(&f, fmt); - va_end(args); - va_end(f.args); + n = fmtprint(&f, fmt, args); if(n > 0 && Bfmtflush(&f) < 0) return -1; return n;