>> RTA_PAYLOAD casts the expression to int, at least in 2.6.38.2. It's >> documented >> as unsinged int. Trivial patch included. > > Even since 2.6.11: > http://lxr.linux.no/#linux+v2.6.11/include/linux/rtnetlink.h#L120
I'm missing it. How is it concluded that the result is cast to (int)? Looking at the header file, one half of a larrger expression is cast to (int), but not the whole expression. Cheers. Michael >> The kernel header probably ought be modified not to perform this rather >> questionable cast, in which case RTA_LENGTH()'s result type would be >> inherited, >> but that's an issue for another bug. > >> diff -ur manpages-pristine//man3/rtnetlink.3 manpages-3.27//man3/rtnetlink.3 >> --- manpages-pristine//man3/rtnetlink.3 2011-04-06 05:13:34.137124578 >> -0500 >> +++ manpages-3.27//man3/rtnetlink.3 2011-04-06 05:13:55.033179278 -0500 >> @@ -23,7 +23,7 @@ >> .sp >> .BI "void *RTA_DATA(struct rtattr *" rta ); >> .sp >> -.BI "unsigned int RTA_PAYLOAD(struct rtattr *" rta ); >> +.BI "int RTA_PAYLOAD(struct rtattr *" rta ); >> .sp >> .BI "struct rtattr *RTA_NEXT(struct rtattr *" rta \ >> ", unsigned int " rtabuflen ); > > Patch forwarded on the linux-man mailing list, thanks. > > -- > Simon Paillard > > > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org