linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Kerrisk <mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
To: 爱尔兰咖啡 <mailch-9uewiaClKEY@public.gmane.org>
Cc: linux-man <linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: man page bug report hcreate(3) and hcreate_r(3)
Date: Sat, 5 Dec 2009 07:55:39 +0100	[thread overview]
Message-ID: <cfd18e0f0912042255w40ff0d39u2b76da5d40651540@mail.gmail.com> (raw)
In-Reply-To: <tencent_01E440483D07FECE098E4A65-9uewiaClKEY@public.gmane.org>

2009/11/30 爱尔兰咖啡 <mailch-9uewiaClKEY@public.gmane.org>:
> I find two errors in the EXAMPLE section:
>
> e.data = (void *) i;
>        //should be
>       e.data = (void *) &i;
>
> printf("%9.9s -> %9.9s:%d\n", e.key,
>                       ep ? ep->key : "NULL", ep ? (int)(ep->data) : 0);
>      //should be
>     printf("%9.9s -> %9.9s:%d\n", e.key,
>                       ep ? ep->key : "NULL", ep ? *(int*)(ep->data) : 0);
>
> They are also in the online man pages
> http://www.kernel.org/doc/man-pages/online/pages/man3/hcreate.3.html
> http://www.kernel.org/doc/man-pages/online/pages/man3/hcreate_r.3.html

As far as I can see, these changes are not correct. If, after
reviewing, you disagree, could you please explain further.

Thanks,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

           reply	other threads:[~2009-12-05  6:55 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <tencent_01E440483D07FECE098E4A65-9uewiaClKEY@public.gmane.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cfd18e0f0912042255w40ff0d39u2b76da5d40651540@mail.gmail.com \
    --to=mtk.manpages-gm/ye1e23mwn+bqq9rbeug@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mailch-9uewiaClKEY@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).