Remove unused variable from os_gmtime()
This commit is contained in:
parent
bd2df8921b
commit
fe4c43ce95
3 changed files with 0 additions and 6 deletions
|
@ -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 a new issue