mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 09:14:03 -05:00
Remove unused variable from os_gmtime()
This commit is contained in:
parent
bd2df8921b
commit
fe4c43ce95
@ -72,10 +72,8 @@ int os_mktime(int year, int month, int day, int hour, int min, int sec,
|
||||
|
||||
int os_gmtime(os_time_t t, struct os_tm *tm)
|
||||
{
|
||||
time_t t2;
|
||||
struct tm *tm2;
|
||||
|
||||
t2 = t;
|
||||
tm2 = gmtime(&t);
|
||||
if (tm2 == NULL)
|
||||
return -1;
|
||||
|
@ -108,10 +108,8 @@ int os_mktime(int year, int month, int day, int hour, int min, int sec,
|
||||
|
||||
int os_gmtime(os_time_t t, struct os_tm *tm)
|
||||
{
|
||||
time_t t2;
|
||||
struct tm *tm2;
|
||||
|
||||
t2 = t;
|
||||
tm2 = gmtime(&t);
|
||||
if (tm2 == NULL)
|
||||
return -1;
|
||||
|
@ -94,10 +94,8 @@ int os_mktime(int year, int month, int day, int hour, int min, int sec,
|
||||
|
||||
int os_gmtime(os_time_t t, struct os_tm *tm)
|
||||
{
|
||||
time_t t2;
|
||||
struct tm *tm2;
|
||||
|
||||
t2 = t;
|
||||
tm2 = gmtime(&t);
|
||||
if (tm2 == NULL)
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user