1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Do not use the second parameter to gettimeofday() on unix. Pass it a NULL. (CVS 3804)

FossilOrigin-Name: 96b678818c9a536b77f10b25256facf4bff1ff65
This commit is contained in:
drh
2007-04-02 18:06:57 +00:00
parent c94d9c776c
commit bdcc276e94
3 changed files with 8 additions and 9 deletions

View File

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