summaryrefslogtreecommitdiff
path: root/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c
diff options
context:
space:
mode:
authorJaben Carsey <jaben.carsey@intel.com>2015-09-24 20:44:00 +0000
committerjcarsey <jcarsey@Edk2>2015-09-24 20:44:00 +0000
commit310b053a863a8908deeb1e7dd531a020493ba61c (patch)
tree9b4c07e9e03109b0dd126a709f622fc3a827b674 /ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c
parent0994fe6f81c638f9bba117d1c23bafd0efefd4f9 (diff)
downloadedk2-platforms-310b053a863a8908deeb1e7dd531a020493ba61c.tar.xz
Revert 18541
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18542 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c')
-rw-r--r--ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c b/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c
index e596c22723..d2f7046de0 100644
--- a/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c
+++ b/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c
@@ -2,7 +2,6 @@
The implementation for the 'tftp' Shell command.
Copyright (c) 2015, ARM Ltd. All rights reserved.<BR>
- Copyright (c) 2015, Intel Corporation. All rights reserved. <BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -15,8 +14,6 @@
#include "UefiShellTftpCommandLib.h"
-#define EFI_IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH 32
-
/*
Constant strings and definitions related to the message indicating the amount of
progress in the dowloading of a TFTP file.
@@ -261,7 +258,7 @@ ShellCommandRunTftp (
EFI_HANDLE *Handles;
UINTN HandleCount;
UINTN NicNumber;
- CHAR16 NicName[EFI_IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH];
+ CHAR16 NicName[IP4_NIC_NAME_LENGTH];
EFI_HANDLE ControllerHandle;
EFI_HANDLE Mtftp4ChildHandle;
EFI_MTFTP4_PROTOCOL *Mtftp4;
@@ -574,7 +571,7 @@ StringToUint16 (
return FALSE;
}
- *Value = (UINT16)Val;
+ *Value = Val;
return TRUE;
}
@@ -626,7 +623,7 @@ GetNicName (
UnicodeSPrint (
NicName,
- EFI_IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH,
+ IP4_NIC_NAME_LENGTH,
SnpMode.IfType == NET_IFTYPE_ETHERNET ?
L"eth%d" :
L"unk%d" ,
@@ -947,8 +944,8 @@ CheckPacket (
CHAR16 Progress[TFTP_PROGRESS_MESSAGE_SIZE];
UINT64 NbOfKb;
UINTN Index;
- UINT64 LastStep;
- UINT64 Step;
+ UINTN LastStep;
+ UINTN Step;
if ((NTOHS (Packet->OpCode)) != EFI_MTFTP4_OPCODE_DATA) {
return EFI_SUCCESS;