Browse Source

win32: check: whitespace fixes in time.c

master
goldsimon 8 years ago
parent
commit
d560eda09f
  1. 18
      ports/win32/check/time.c

18
ports/win32/check/time.c

@ -21,8 +21,7 @@ int gettimeofday(struct timeval *tv, struct timezone *tz)
unsigned __int64 tmpres = 0;
static int tzflag;
if (NULL != tv)
{
if (NULL != tv) {
GetSystemTimeAsFileTime(&ft);
tmpres |= ft.dwHighDateTime;
@ -36,10 +35,8 @@ int gettimeofday(struct timeval *tv, struct timezone *tz)
tv->tv_usec = (long)(tmpres % 1000000UL);
}
if (NULL != tz)
{
if (!tzflag)
{
if (NULL != tz) {
if (!tzflag) {
_tzset();
tzflag++;
}
@ -54,10 +51,15 @@ struct tm *
localtime_r(const time_t *timer, struct tm *result)
{
struct tm *local_result;
local_result = localtime (timer);
if (local_result == NULL || result == NULL)
if (result == NULL) {
return NULL;
}
local_result = localtime (timer);
if (local_result == NULL) {
return NULL;
}
memcpy(result, local_result, sizeof(*result));
return result;

Loading…
Cancel
Save