On Fri, Mar 04, 2011 at 01:43:03PM +0500, Anton Maksimenkov wrote:
> Hi.
>
> I found that manpage for imsg-family have a little mistake:
> ...
> if (msgbuf_write(ibuf->w) < 0) {
> ...
>
> It seems it should be:
> if (msgbuf_write(&ibuf->w) < 0) {
Yes that's correct. I think the following diff should fix this.
--
:wq Claudio
Index: imsg_init.3
===================================================================
RCS file: /cvs/src/lib/libutil/imsg_init.3,v
retrieving revision 1.3
diff -u -p -r1.3 imsg_init.3
--- imsg_init.3 31 Oct 2010 17:33:33 -0000 1.3
+++ imsg_init.3 4 Mar 2011 10:09:38 -0000
@@ -492,7 +492,7 @@ library is used to monitor the socket fi
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