toops - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit ee51985f90394959068f41aa42f898c9bb972f08
DIR parent 22157b7a34bfaf5df78a6db6eafdf657ac23eb57
HTML Author: rsc <devnull@localhost>
Date: Fri, 27 Jan 2006 04:16:40 +0000
oops
Diffstat:
M man/man3/bio.3 | 4 +++-
M src/cmd/upas/ned/nedmail.c | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
---
DIR diff --git a/man/man3/bio.3 b/man/man3/bio.3
t@@ -285,7 +285,9 @@ to occur and there is an error,
a negative value
.RB ( Beof )
is returned.
-Otherwise, the number of bytes output is returned.
+Otherwise,
+.I Bprint
+returns zero.
.I Bvprint
does the same except it takes as argument a
.B va_list
DIR diff --git a/src/cmd/upas/ned/nedmail.c b/src/cmd/upas/ned/nedmail.c
t@@ -1512,7 +1512,7 @@ printpartindented(String *s, char *part, char *indent)
if(interrupted)
break;
p[Blinelen(b)-1] = 0;
- if(Bprint(&out, "%s%s\n", indent, p) <= 0)
+ if(Bprint(&out, "%s%s\n", indent, p) < 0)
break;
}
Bprint(&out, "\n");