diff options
author | drh <drh@noemail.net> | 2007-04-02 18:06:57 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2007-04-02 18:06:57 +0000 |
commit | bdcc276e943bc05a74908a6b18943d801462b133 (patch) | |
tree | 5b2f4558e5596619c7a57e989858ab348c8ab81b /src/os_unix.c | |
parent | c94d9c776cfaadc96136ce5b0ac39f70b53c02fa (diff) | |
download | sqlite-bdcc276e943bc05a74908a6b18943d801462b133.tar.gz sqlite-bdcc276e943bc05a74908a6b18943d801462b133.zip |
Do not use the second parameter to gettimeofday() on unix. Pass it a NULL. (CVS 3804)
FossilOrigin-Name: 96b678818c9a536b77f10b25256facf4bff1ff65
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 2fff26852..18ae4b76c 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -2909,8 +2909,7 @@ int sqlite3UnixCurrentTime(double *prNow){ *prNow = t/86400.0 + 2440587.5; #else struct timeval sNow; - struct timezone sTz; /* Not used */ - gettimeofday(&sNow, &sTz); + gettimeofday(&sNow, 0); *prNow = 2440587.5 + sNow.tv_sec/86400.0 + sNow.tv_usec/86400000000.0; #endif #ifdef SQLITE_TEST |