summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2011-12-21 17:03:30 +0000
committerjh <jh@FreeBSD.org>2011-12-21 17:03:30 +0000
commitc2dfd4451c331c3e687830de21030c8793557162 (patch)
tree9ca9cafde4422dea78bb1eabdab985ca709f09ee /share
parent8267c9aa1bd5b448396ef0742a10f8e2e6b26a99 (diff)
downloadFreeBSD-src-c2dfd4451c331c3e687830de21030c8793557162.zip
FreeBSD-src-c2dfd4451c331c3e687830de21030c8793557162.tar.gz
Follow style(9) more closely in the example.
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/sbuf.96
1 files changed, 3 insertions, 3 deletions
diff --git a/share/man/man9/sbuf.9 b/share/man/man9/sbuf.9
index 4ee05f4..7336c42 100644
--- a/share/man/man9/sbuf.9
+++ b/share/man/man9/sbuf.9
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 9, 2011
+.Dd December 21, 2011
.Dt SBUF 9
.Os
.Sh NAME
@@ -495,8 +495,8 @@ TAILQ_FOREACH(foo, &foolist, list) {
sbuf_printf(sb, " Address: %s\en", foo->address);
sbuf_printf(sb, " Zip: %s\en", foo->zipcode);
}
-if (sbuf_finish(sb)) /* Check for any and all errors */
- err(1,"Could not generate message");
+if (sbuf_finish(sb) != 0) /* Check for any and all errors */
+ err(1, "Could not generate message");
transmit_msg(sbuf_data(sb), sbuf_len(sb));
sbuf_delete(sb);
.Ed
OpenPOWER on IntegriCloud