diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2025-01-03 22:28:21 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-01-13 04:32:46 +0000 |
commit | 4218026bd6ebf10bb1e71e0dd93ebbb56ca8c2f7 (patch) | |
tree | 9cdc4aa5666da4b8b1bd000ab8130de270a3eb85 /CryptoPkg | |
parent | 96390bb8a51519a0dc564a63186d4955f2521459 (diff) | |
download | edk2-4218026bd6ebf10bb1e71e0dd93ebbb56ca8c2f7.tar.gz |
CryptoPkg/BaseCryptLib: Fix mktime() coding style issue
Move local variable init to C statements to follow
coding standard and remove the use of field names in
structure initialization to maximize compiler compatibility.
This issue was introduced by PR #6185
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'CryptoPkg')
-rw-r--r-- | CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c b/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c index 9b3a2911d0..894aeb016f 100644 --- a/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c +++ b/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c @@ -148,15 +148,15 @@ mktime ( struct tm *t
)
{
- EFI_TIME Time = {
- .Year = (UINT16)t->tm_year,
- .Month = (UINT8)t->tm_mon,
- .Day = (UINT8)t->tm_mday,
- .Hour = (UINT8)t->tm_hour,
- .Minute = (UINT8)t->tm_min,
- .Second = (UINT8)t->tm_sec,
- .TimeZone = EFI_UNSPECIFIED_TIMEZONE,
- };
+ EFI_TIME Time;
+
+ Time.Year = (UINT16)t->tm_year;
+ Time.Month = (UINT8)t->tm_mon;
+ Time.Day = (UINT8)t->tm_mday;
+ Time.Hour = (UINT8)t->tm_hour;
+ Time.Minute = (UINT8)t->tm_min;
+ Time.Second = (UINT8)t->tm_sec;
+ Time.TimeZone = EFI_UNSPECIFIED_TIMEZONE;
return CalculateTimeT (&Time);
}
|