diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-24 17:36:07 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-24 17:36:07 +0000 |
commit | ea886bef0af641ae4b3abac542d41686bf3251d8 (patch) | |
tree | 075eec4f719be11ef57e416c1607d6a040a68080 /MdeModulePkg/Universal/Network/UefiPxeBcDxe | |
parent | e7d41e181897a2bbbb0994cb6aa49b576a12edd9 (diff) | |
download | edk2-platforms-ea886bef0af641ae4b3abac542d41686bf3251d8.tar.xz |
Updated EFI_MTFTP4_TOKEN structure to add member Context. It's an incompatible change adopted by UEFI group.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9005 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/UefiPxeBcDxe')
-rw-r--r-- | MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcMtftp.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcMtftp.c b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcMtftp.c index d6d4cd581f..6eb0e64be0 100644 --- a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcMtftp.c +++ b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcMtftp.c @@ -14,9 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include "PxeBcImpl.h"
-VOID *TokenContext = NULL;
-
-CHAR8 *mMtftpOptions[PXE_MTFTP_OPTION_MAXIMUM_INDEX] = {
+UINT8 *mMtftpOptions[PXE_MTFTP_OPTION_MAXIMUM_INDEX] = {
"blksize",
"timeout",
"tsize",
@@ -55,7 +53,7 @@ PxeBcCheckPacket ( EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL *Callback;
EFI_STATUS Status;
- Private = (PXEBC_PRIVATE_DATA *) TokenContext;
+ Private = (PXEBC_PRIVATE_DATA *) Token->Context;
Callback = Private->PxeBcCallback;
Status = EFI_SUCCESS;
@@ -271,7 +269,7 @@ PxeBcTftpReadFile ( Token.ModeStr = NULL;
Token.OptionCount = OptCnt;
Token.OptionList = ReqOpt;
- TokenContext = Private;
+ Token.Context = Private;
if (DontUseBuffer) {
Token.BufferSize = 0;
@@ -428,7 +426,7 @@ PxeBcTftpReadDirectory ( Token.ModeStr = NULL;
Token.OptionCount = OptCnt;
Token.OptionList = ReqOpt;
- TokenContext = Private;
+ Token.Context = Private;
if (DontUseBuffer) {
Token.BufferSize = 0;
|