Follow style(9) more closely in the example.

This commit is contained in:
Jaakko Heinonen 2011-12-21 17:03:30 +00:00
parent 6f7651b9b6
commit c5a0813d43

View File

@ -25,7 +25,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd December 9, 2011 .Dd December 21, 2011
.Dt SBUF 9 .Dt SBUF 9
.Os .Os
.Sh NAME .Sh NAME
@ -495,8 +495,8 @@ TAILQ_FOREACH(foo, &foolist, list) {
sbuf_printf(sb, " Address: %s\en", foo->address); sbuf_printf(sb, " Address: %s\en", foo->address);
sbuf_printf(sb, " Zip: %s\en", foo->zipcode); sbuf_printf(sb, " Zip: %s\en", foo->zipcode);
} }
if (sbuf_finish(sb)) /* Check for any and all errors */ if (sbuf_finish(sb) != 0) /* Check for any and all errors */
err(1,"Could not generate message"); err(1, "Could not generate message");
transmit_msg(sbuf_data(sb), sbuf_len(sb)); transmit_msg(sbuf_data(sb), sbuf_len(sb));
sbuf_delete(sb); sbuf_delete(sb);
.Ed .Ed