]> git.sur5r.net Git - u-boot/commitdiff
Avoid compiler warning.
authorWolfgang Denk <wd@denx.de>
Tue, 18 Sep 2007 19:36:35 +0000 (21:36 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 18 Sep 2007 19:36:35 +0000 (21:36 +0200)
Signed-off-by: Wolfgang Denk <wd@denx.de>
net/bootp.c

index be1ee332a5f75a5a15af7db80ad7c4dc6bb5ed5a..749d3e5e0c24ce08fb3ea7f9ccc8726b56445ed8 100644 (file)
@@ -730,7 +730,7 @@ static void DhcpOptionsProcess (uchar * popt, Bootp_t *bp)
                        break;
 #if defined(CONFIG_CMD_SNTP) && defined(CONFIG_BOOTP_TIMEOFFSET)
                case 2:         /* Time offset  */
-                       NetCopyLong (&NetTimeOffset, (ulong *) (popt + 2));
+                       NetCopyLong ((ulong *)&NetTimeOffset, (ulong *) (popt + 2));
                        NetTimeOffset = ntohl (NetTimeOffset);
                        break;
 #endif