From fe6c62fc0cc9931ce7ff921995cd2c1936f6b8b8 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Wed, 26 Oct 2016 19:28:24 +0200 Subject: [PATCH] ShellPkg/UefiShellLevel2CommandsLib: rebase to ARRAY_SIZE() Cc: Jaben Carsey Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Ruiyu Ni Reviewed-by: Jaben Carsey Reviewed-by: Jordan Justen --- ShellPkg/Library/UefiShellLevel2CommandsLib/TimeDate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/TimeDate.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/TimeDate.c index 3ebc72a0af..5383cffe87 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/TimeDate.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/TimeDate.c @@ -942,7 +942,7 @@ ShellCommandRunTimeZone ( // if (ShellCommandLineGetFlag (Package, L"-f")) { for ( LoopVar = 0 - ; LoopVar < sizeof (TimeZoneList) / sizeof (TimeZoneList[0]) + ; LoopVar < ARRAY_SIZE (TimeZoneList) ; LoopVar++ ){ if (TheTime.TimeZone == TimeZoneList[LoopVar].TimeZone) {