diff options
author | Bruce Momjian | 2003-08-04 00:43:34 +0000 |
---|---|---|
committer | Bruce Momjian | 2003-08-04 00:43:34 +0000 |
commit | 089003fb462fcce46c02bf47322b429f73c33c50 (patch) | |
tree | 77d78bc3a149df06f5603f60200a6ab363336624 /src/port/gettimeofday.c | |
parent | 63354a0228a1dbc4a0d5ddc8ecdd8326349d2100 (diff) |
pgindent run.
Diffstat (limited to 'src/port/gettimeofday.c')
-rw-r--r-- | src/port/gettimeofday.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/port/gettimeofday.c b/src/port/gettimeofday.c index 3e2a6706d49..02eecd1e572 100644 --- a/src/port/gettimeofday.c +++ b/src/port/gettimeofday.c @@ -1,5 +1,5 @@ /* - * $Header: /cvsroot/pgsql/src/port/gettimeofday.c,v 1.1 2003/05/16 04:59:24 momjian Exp $ + * $Header: /cvsroot/pgsql/src/port/gettimeofday.c,v 1.2 2003/08/04 00:43:33 momjian Exp $ * * Copyright (c) 2003 SRA, Inc. * Copyright (c) 2003 SKC, Inc. @@ -34,20 +34,19 @@ static const unsigned __int64 epoch = 116444736000000000L; * timezone information is stored outside the kernel so tzp isn't used anymore. */ int -gettimeofday(struct timeval *tp, struct timezone *tzp) +gettimeofday(struct timeval * tp, struct timezone * tzp) { - FILETIME file_time; - SYSTEMTIME system_time; - ULARGE_INTEGER ularge; + FILETIME file_time; + SYSTEMTIME system_time; + ULARGE_INTEGER ularge; GetSystemTime(&system_time); SystemTimeToFileTime(&system_time, &file_time); ularge.LowPart = file_time.dwLowDateTime; ularge.HighPart = file_time.dwHighDateTime; - tp->tv_sec = (long)((ularge.QuadPart - epoch) / 10000000L); - tp->tv_usec = (long)(system_time.wMilliseconds * 1000); + tp->tv_sec = (long) ((ularge.QuadPart - epoch) / 10000000L); + tp->tv_usec = (long) (system_time.wMilliseconds * 1000); return 0; } - |