summaryrefslogtreecommitdiffstats
path: root/src/lib9/fmt/vfprint.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-12-26 23:07:37 +0000
committerrsc <devnull@localhost>2004-12-26 23:07:37 +0000
commitdf121a0027e6dc08abe6fc907c9af2593a263c17 (patch)
tree46d2da9546978f65073bab77217e3ce5d2dff544 /src/lib9/fmt/vfprint.c
parenta76c0fd4a9a9a9a64893db614dd146a5819a6e0c (diff)
downloadplan9port-df121a0027e6dc08abe6fc907c9af2593a263c17.tar.gz
plan9port-df121a0027e6dc08abe6fc907c9af2593a263c17.zip
import changes from plan 9
Diffstat (limited to 'src/lib9/fmt/vfprint.c')
-rw-r--r--src/lib9/fmt/vfprint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib9/fmt/vfprint.c b/src/lib9/fmt/vfprint.c
index 1df47477..3b026202 100644
--- a/src/lib9/fmt/vfprint.c
+++ b/src/lib9/fmt/vfprint.c
@@ -24,9 +24,9 @@ vfprint(int fd, char *fmt, va_list args)
int n;
fmtfdinit(&f, fd, buf, sizeof(buf));
- va_copy(f.args,args);
+ VA_COPY(f.args,args);
n = dofmt(&f, fmt);
- va_end(f.args);
+ VA_END(f.args);
if(n > 0 && __fmtFdFlush(&f) == 0)
return -1;
return n;