svn commit: r228784 - head/share/man/man9
Jaakko Heinonen
jh at FreeBSD.org
Wed Dec 21 17:03:31 UTC 2011
Author: jh
Date: Wed Dec 21 17:03:30 2011
New Revision: 228784
URL: http://svn.freebsd.org/changeset/base/228784
Log:
Follow style(9) more closely in the example.
Modified:
head/share/man/man9/sbuf.9
Modified: head/share/man/man9/sbuf.9
==============================================================================
--- head/share/man/man9/sbuf.9 Wed Dec 21 17:01:13 2011 (r228783)
+++ head/share/man/man9/sbuf.9 Wed Dec 21 17:03:30 2011 (r228784)
@@ -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
More information about the svn-src-head
mailing list