From: Eric Dong Date: Mon, 28 Jul 2014 07:43:23 +0000 (+0000) Subject: Update code to support VS2013 tool chain. X-Git-Tag: edk2-stable201903~11301 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=94866d4035b84523a61488f000dcaad13bfd4aa5 Update code to support VS2013 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15693 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/NetworkPkg/IScsiDxe/IScsiProto.c b/NetworkPkg/IScsiDxe/IScsiProto.c index fb5d396aaa..4c4e3c28e7 100644 --- a/NetworkPkg/IScsiDxe/IScsiProto.c +++ b/NetworkPkg/IScsiDxe/IScsiProto.c @@ -604,6 +604,8 @@ IScsiReceiveLoginRsp ( EFI_STATUS Status; NET_BUF *Pdu; + Pdu = NULL; + // // Receive the iSCSI login response. // diff --git a/NetworkPkg/Ip6Dxe/Ip6Output.c b/NetworkPkg/Ip6Dxe/Ip6Output.c index 0e18c10c83..931dfbafc2 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Output.c +++ b/NetworkPkg/Ip6Dxe/Ip6Output.c @@ -1,7 +1,7 @@ /** @file The internal functions and routines to transmit the IP6 packet. - Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -388,6 +388,8 @@ Ip6PrependHead ( EFI_STATUS Status; UINT8 NextHeader; + UpdatedExtHdrs = NULL; + // // HeadLen is the length of the fixed part of the sequences of fragments, i.e. // the unfragment part. diff --git a/NetworkPkg/IpSecDxe/IpSecCryptIo.c b/NetworkPkg/IpSecDxe/IpSecCryptIo.c index 54607692aa..8396c59003 100644 --- a/NetworkPkg/IpSecDxe/IpSecCryptIo.c +++ b/NetworkPkg/IpSecDxe/IpSecCryptIo.c @@ -1,7 +1,7 @@ /** @file Common interfaces to call Security library. - Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -826,6 +826,8 @@ IpSecCryptoIoAuthDataWithCertificate ( UINTN SigSize; SigSize = 0; + RsaContext = NULL; + // // Retrieve RSA Private Key from password-protected PEM data // diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c b/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c index 121b2a3726..2aadef076c 100644 --- a/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c +++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c @@ -1,7 +1,7 @@ /** @file Mtftp6 Rrq process functions implementation. - Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -457,6 +457,7 @@ Mtftp6RrqHandleOack ( EFI_UDP6_PROTOCOL *Udp6; *IsCompleted = FALSE; + Options = NULL; // // If already started the master download, don't change the diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c b/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c index a6baaaba40..254b757f7e 100644 --- a/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c +++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c @@ -1,7 +1,7 @@ /** @file Mtftp6 Wrq process functions implementation. - Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -295,6 +295,7 @@ Mtftp6WrqHandleOack ( INTN Expected; *IsCompleted = FALSE; + Options = NULL; // // Ignore the OACK if already started the upload