Remove unused variable from os_gmtime()

This commit is contained in:
Jouni Malinen 2011-10-23 12:22:40 +03:00
parent bd2df8921b
commit fe4c43ce95
3 changed files with 0 additions and 6 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;