On Wed, Apr 30, 2008 at 01:34:40PM +0200, Anatolij Gustschin wrote:
> diff --git a/include/net.h b/include/net.h
> index f6decdc..9a2f03f 100644
> --- a/include/net.h
> +++ b/include/net.h
> @@ -412,10 +412,10 @@ extern void print_IPaddr (IPaddr_t);
> * footprint in our tests.
> */
> /* return IP *in network byteorder* */
> -static inline IPaddr_t NetReadIP(void *from)
> +static inline IPaddr_t NetReadIP(volatile void *from)
> {
> IPaddr_t ip;
> - memcpy((void*)&ip, from, sizeof(ip));
> + memcpy((void*)&ip, (void*)from, sizeof(ip));
> return ip;
> }
>
Maybe we should remove the volatile from the callers instead?
-Scott
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users