Re: Apply this patch

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 11 Jan 2000 21:53:42 +0000 (GMT)


> 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/