summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2011-03-05 15:05:39 +0000
committerclaudio <claudio@openbsd.org>2011-03-05 15:05:39 +0000
commitcd62355364fc7a360f2013987ffc9478ab72ed52 (patch)
tree1c05edaa2e7df85288db659e687a8869fdba1da3
parentWait until the DMA engine is stopped before unmapping buffers and descriptors. (diff)
downloadwireguard-openbsd-cd62355364fc7a360f2013987ffc9478ab72ed52.tar.xz
wireguard-openbsd-cd62355364fc7a360f2013987ffc9478ab72ed52.zip
Correct msgbuf_write() example. OK jmc@ and nicm@
-rw-r--r--lib/libutil/imsg_init.36
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libutil/imsg_init.3 b/lib/libutil/imsg_init.3
index a5b72a5cee7..e3f0c638d3b 100644
--- a/lib/libutil/imsg_init.3
+++ b/lib/libutil/imsg_init.3
@@ -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