Use time_t instead of os_time_t variable with the gmtime() call to
avoid possible compiler warnings.
Signed-hostap: Jouni Malinen <j@w1.fi>
int os_gmtime(os_time_t t, struct os_tm *tm)
{
struct tm *tm2;
+ time_t t2 = t;
- tm2 = gmtime(&t);
+ tm2 = gmtime(&t2);
if (tm2 == NULL)
return -1;
tm->sec = tm2->tm_sec;
int os_gmtime(os_time_t t, struct os_tm *tm)
{
struct tm *tm2;
+ time_t t2 = t;
- tm2 = gmtime(&t);
+ tm2 = gmtime(&t2);
if (tm2 == NULL)
return -1;
tm->sec = tm2->tm_sec;
int os_gmtime(os_time_t t, struct os_tm *tm)
{
struct tm *tm2;
+ time_t t2 = t;
- tm2 = gmtime(&t);
+ tm2 = gmtime(&t2);
if (tm2 == NULL)
return -1;
tm->sec = tm2->tm_sec;