mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
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>
This commit is contained in:
parent
96390bb8a5
commit
4218026bd6
@ -148,15 +148,15 @@ mktime (
|
|||||||
struct tm *t
|
struct tm *t
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_TIME Time = {
|
EFI_TIME Time;
|
||||||
.Year = (UINT16)t->tm_year,
|
|
||||||
.Month = (UINT8)t->tm_mon,
|
Time.Year = (UINT16)t->tm_year;
|
||||||
.Day = (UINT8)t->tm_mday,
|
Time.Month = (UINT8)t->tm_mon;
|
||||||
.Hour = (UINT8)t->tm_hour,
|
Time.Day = (UINT8)t->tm_mday;
|
||||||
.Minute = (UINT8)t->tm_min,
|
Time.Hour = (UINT8)t->tm_hour;
|
||||||
.Second = (UINT8)t->tm_sec,
|
Time.Minute = (UINT8)t->tm_min;
|
||||||
.TimeZone = EFI_UNSPECIFIED_TIMEZONE,
|
Time.Second = (UINT8)t->tm_sec;
|
||||||
};
|
Time.TimeZone = EFI_UNSPECIFIED_TIMEZONE;
|
||||||
|
|
||||||
return CalculateTimeT (&Time);
|
return CalculateTimeT (&Time);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user