aboutsummaryrefslogtreecommitdiff
path: root/src/libbio/bprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libbio/bprint.c')
-rw-r--r--src/libbio/bprint.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/libbio/bprint.c b/src/libbio/bprint.c
index f15203ce..8951512f 100644
--- a/src/libbio/bprint.c
+++ b/src/libbio/bprint.c
@@ -4,16 +4,11 @@
int
Bprint(Biobuf *bp, char *fmt, ...)
{
- va_list args;
- Fmt f;
int n;
+ va_list arg;
- if(Bfmtinit(&f, bp) < 0)
- return -1;
- va_start(args, fmt);
- n = fmtvprint(&f, fmt, args);
- va_end(args);
- if(n > 0 && Bfmtflush(&f) < 0)
- return -1;
+ va_start(arg, fmt);
+ n = Bvprint(bp, fmt, arg);
+ va_end(arg);
return n;
}