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