Re: small typo in imsg_init.3
On Sat, Dec 12, 2020 at 09:20:26PM -0500, Aisha Tammy wrote: > Hi, > ?? While creating a portable version of imsg, I noticed > a small typo in the imsg_init.3 man page which says > the returned value is 'len' instead of 'datalen'. > Attached the patch to fix it. > > OK? > fixed, thanks. jmc > Cheers, > Aisha > > diff --git a/lib/libutil/imsg_init.3 b/lib/libutil/imsg_init.3 > index 18720d1d59b..e7dc6ab928d 100644 > --- a/lib/libutil/imsg_init.3 > +++ b/lib/libutil/imsg_init.3 > @@ -186,7 +186,7 @@ appends to > bytes of ancillary data pointed to by > .Fa data . > It returns > -.Fa len > +.Fa datalen > if it succeeds, \-1 otherwise. > .Pp > .Fn imsg_close >
small typo in imsg_init.3
Hi, While creating a portable version of imsg, I noticed a small typo in the imsg_init.3 man page which says the returned value is 'len' instead of 'datalen'. Attached the patch to fix it. OK? Cheers, Aisha diff --git a/lib/libutil/imsg_init.3 b/lib/libutil/imsg_init.3 index 18720d1d59b..e7dc6ab928d 100644 --- a/lib/libutil/imsg_init.3 +++ b/lib/libutil/imsg_init.3 @@ -186,7 +186,7 @@ appends to bytes of ancillary data pointed to by .Fa data . It returns -.Fa len +.Fa datalen if it succeeds, \-1 otherwise. .Pp .Fn imsg_close
Fix typo in imsg_init.3
This fixes a typo in the imsg example. Index: lib/libutil/imsg_init.3 === RCS file: /repo/OpenBSD/src/lib/libutil/imsg_init.3,v retrieving revision 1.12 diff -u -p -u -r1.12 imsg_init.3 --- lib/libutil/imsg_init.3 11 Jun 2015 19:25:53 - 1.12 +++ lib/libutil/imsg_init.3 10 Jul 2015 16:39:32 - @@ -476,7 +476,7 @@ function: enum imsg_type { IMSG_A_MESSAGE, IMSG_MESSAGE2 -} +}; int child_main(struct imsgbuf *ibuf)
typo in imsg_init.3
Index: imsg_init.3 === RCS file: /srv/radon/data/vcs/cvs/openbsd/src/lib/libutil/imsg_init.3,v retrieving revision 1.4 diff -u -p -r1.4 imsg_init.3 --- imsg_init.3 5 Mar 2011 15:05:39 - 1.4 +++ imsg_init.3 23 Jun 2011 21:51:57 - @@ -161,7 +161,7 @@ imsgbuf. creates a new message with header specified by .Fa type , .Fa peerid -ands +and .Fa pid . A .Fa pid