Jelajahi Sumber

Avoid compiler warning.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Wolfgang Denk 17 tahun lalu
induk
melakukan
135e19bc27
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      net/bootp.c

+ 1 - 1
net/bootp.c

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