> It appears the ntohl function is actually a macro that parenthesizes its
> argument (whee) which means that when you pass in an unsigned int, you get
> back an unsigned int so you should probably cast each return value of ntohl to
> an unsigned long to suppress this error message.
ntohl actually takes and return a u32
> # define ntohl(x) ((unsigned long)(x))
so ((u32)(x)). Yes confusing nomenclature but then nobody believed 64bit computers
would happen, 36 bit have been proved to be too many
Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:18 EST