* Re: man page bug report hcreate(3) and hcreate_r(3)
[not found] ` <tencent_01E440483D07FECE098E4A65-9uewiaClKEY@public.gmane.org>
@ 2009-12-05 6:55 ` Michael Kerrisk
0 siblings, 0 replies; only message in thread
From: Michael Kerrisk @ 2009-12-05 6:55 UTC (permalink / raw)
To: 爱尔兰咖啡; +Cc: linux-man
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
^ permalink raw reply [flat|nested] only message in thread