aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-01-27 04:16:40 +0000
committerrsc <devnull@localhost>2006-01-27 04:16:40 +0000
commitee51985f90394959068f41aa42f898c9bb972f08 (patch)
treea9bab3cc9c0971de13e2bb921c7ea3cfe3153d53
parent22157b7a34bfaf5df78a6db6eafdf657ac23eb57 (diff)
downloadplan9port-ee51985f90394959068f41aa42f898c9bb972f08.tar.gz
plan9port-ee51985f90394959068f41aa42f898c9bb972f08.tar.bz2
plan9port-ee51985f90394959068f41aa42f898c9bb972f08.zip
oops
-rw-r--r--man/man3/bio.34
-rw-r--r--src/cmd/upas/ned/nedmail.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/man/man3/bio.3 b/man/man3/bio.3
index 02f36aee..3c66b57a 100644
--- a/man/man3/bio.3
+++ b/man/man3/bio.3
@@ -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
diff --git a/src/cmd/upas/ned/nedmail.c b/src/cmd/upas/ned/nedmail.c
index 4fa7a88f..29afbbf9 100644
--- a/src/cmd/upas/ned/nedmail.c
+++ b/src/cmd/upas/ned/nedmail.c
@@ -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");