aboutsummaryrefslogtreecommitdiff
path: root/src/libbio
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-12-28 03:40:46 +0000
committerrsc <devnull@localhost>2004-12-28 03:40:46 +0000
commit65cd9e4d852426549226519b25cf1f1a78445b04 (patch)
tree9b209a2d26e7c37d218bb4e61d51285eaeaa37db /src/libbio
parentddb664da1bfebeb348c5c9593b0e9d21462214e6 (diff)
downloadplan9port-65cd9e4d852426549226519b25cf1f1a78445b04.tar.gz
plan9port-65cd9e4d852426549226519b25cf1f1a78445b04.tar.bz2
plan9port-65cd9e4d852426549226519b25cf1f1a78445b04.zip
use fmtprint to avoid va_copy
Diffstat (limited to 'src/libbio')
-rw-r--r--src/libbio/bprint.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libbio/bprint.c b/src/libbio/bprint.c
index f8a4d94f..878bfb63 100644
--- 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;