Fix GCC hang issue: Point should use directly assignment instead of IP4_COPY_ADDRESS.
authorFu Siyuan <siyuan.fu@intel.com>
Wed, 18 Mar 2015 02:53:09 +0000 (02:53 +0000)
committersfu5 <sfu5@Edk2>
Wed, 18 Mar 2015 02:53:09 +0000 (02:53 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Dong Eric <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17062 6f19259b-4bc3-4df7-8a09-765794883524

NetworkPkg/TcpDxe/TcpMain.c

index 66a09c41eaa77a68a930e5c6e10fbec0ff809179..f79db48af30b6b8be68fd53121e055887a20fe2a 100644 (file)
@@ -2,7 +2,7 @@
   Implementation of EFI_TCP4_PROTOCOL and EFI_TCP6_PROTOCOL.\r
 \r
   (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -230,9 +230,9 @@ Tcp4Routes (
   Sock                      = SOCK_FROM_THIS (This);\r
 \r
   RouteInfo.DeleteRoute     = DeleteRoute;\r
-  IP4_COPY_ADDRESS (&RouteInfo.SubnetAddress, &SubnetAddress);\r
-  IP4_COPY_ADDRESS (&RouteInfo.SubnetMask, &SubnetMask);\r
-  IP4_COPY_ADDRESS (&RouteInfo.GatewayAddress, &GatewayAddress);\r
+  RouteInfo.SubnetAddress   = SubnetAddress;\r
+  RouteInfo.SubnetMask      = SubnetMask;\r
+  RouteInfo.GatewayAddress  = GatewayAddress;\r
 \r
   return SockRoute (Sock, &RouteInfo);\r
 }\r