Re: man page bug report hcreate(3) and hcreate_r(3)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/11/30 爱尔兰咖啡 <mailch@xxxxxx>:
> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux