]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg-UefiShellTftpCommandLib: Replace compiler builtin
authorShi, Steven <steven.shi@intel.com>
Wed, 3 Aug 2016 09:43:05 +0000 (17:43 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 10 Aug 2016 04:56:37 +0000 (12:56 +0800)
Use explicit CopyMem to replace compiler builtin to do the structure
values assignment. This change is needed to pass CLANG38 build.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Steven Shi <steven.shi@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 666ee9d..5c50797
@@ -342,7 +342,7 @@ ShellCommandRunTftp (
     goto Error;\r
   }\r
 \r
     goto Error;\r
   }\r
 \r
-  Mtftp4ConfigData = DefaultMtftp4ConfigData;\r
+  CopyMem (&Mtftp4ConfigData, &DefaultMtftp4ConfigData, sizeof (EFI_MTFTP4_CONFIG_DATA));\r
 \r
   //\r
   // Check the host IPv4 address\r
 \r
   //\r
   // Check the host IPv4 address\r