Browse Source

Correct msgbuf_write() example. OK jmc@ and nicm@

OPENBSD_5_0
claudio 13 years ago
parent
commit
2528dce4db
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/lib/libutil/imsg_init.3

+ 3
- 3
src/lib/libutil/imsg_init.3 View File

@ -1,4 +1,4 @@
.\" $OpenBSD: imsg_init.3,v 1.3 2010/10/31 17:33:33 nicm Exp $
.\" $OpenBSD: imsg_init.3,v 1.4 2011/03/05 15:05:39 claudio Exp $
.\"
.\" Copyright (c) 2010 Nicholas Marriott <nicm@openbsd.org>
.\"
@ -14,7 +14,7 @@
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate: October 31 2010 $
.Dd $Mdocdate: March 5 2011 $
.Dt IMSG_INIT 3
.Os
.Sh NAME
@ -492,7 +492,7 @@ library is used to monitor the socket file descriptor.
When the socket is ready for writing, queued messages are transmitted with
.Fn msgbuf_write :
.Bd -literal -offset indent
if (msgbuf_write(ibuf-\*(Gtw) \*(Lt 0) {
if (msgbuf_write(&ibuf-\*(Gtw) \*(Lt 0) {
/* handle write failure */
}
.Ed


Loading…
Cancel
Save