ShellPkg/UefiShellLevel2CommandsLib: rebase to ARRAY_SIZE()
Cc: Jaben Carsey <jaben.carsey@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
@ -942,7 +942,7 @@ ShellCommandRunTimeZone (
|
|||||||
//
|
//
|
||||||
if (ShellCommandLineGetFlag (Package, L"-f")) {
|
if (ShellCommandLineGetFlag (Package, L"-f")) {
|
||||||
for ( LoopVar = 0
|
for ( LoopVar = 0
|
||||||
; LoopVar < sizeof (TimeZoneList) / sizeof (TimeZoneList[0])
|
; LoopVar < ARRAY_SIZE (TimeZoneList)
|
||||||
; LoopVar++
|
; LoopVar++
|
||||||
){
|
){
|
||||||
if (TheTime.TimeZone == TimeZoneList[LoopVar].TimeZone) {
|
if (TheTime.TimeZone == TimeZoneList[LoopVar].TimeZone) {
|
||||||
|
Reference in New Issue
Block a user