diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mutex_os2.c | 2 | ||||
-rw-r--r-- | src/os_os2.c | 2 | ||||
-rw-r--r-- | src/shell.c | 9 |
3 files changed, 5 insertions, 8 deletions
diff --git a/src/mutex_os2.c b/src/mutex_os2.c index 85129f3e4..ce650d994 100644 --- a/src/mutex_os2.c +++ b/src/mutex_os2.c @@ -251,7 +251,7 @@ static void os2MutexLeave(sqlite3_mutex *p){ #endif } -SQLITE_PRIVATE sqlite3_mutex_methods const *sqlite3DefaultMutex(void){ +sqlite3_mutex_methods const *sqlite3DefaultMutex(void){ static const sqlite3_mutex_methods sMutex = { os2MutexInit, os2MutexEnd, diff --git a/src/os_os2.c b/src/os_os2.c index c3dd68f71..487ac3c3c 100644 --- a/src/os_os2.c +++ b/src/os_os2.c @@ -1837,7 +1837,7 @@ static int os2CurrentTimeInt64(sqlite3_vfs *pVfs, sqlite3_int64 *piNow){ ** current time and date as a Julian Day number into *prNow and ** return 0. Return 1 if the time and date cannot be found. */ -int os2CurrentTime( sqlite3_vfs *pVfs, double *prNow ){ +static int os2CurrentTime( sqlite3_vfs *pVfs, double *prNow ){ int rc; sqlite3_int64 i; rc = os2CurrentTimeInt64(pVfs, &i); diff --git a/src/shell.c b/src/shell.c index 4f34ccceb..aab70b29d 100644 --- a/src/shell.c +++ b/src/shell.c @@ -71,6 +71,9 @@ extern int isatty(); #define isatty(x) 1 #endif +/* True if the timer is enabled */ +static int enableTimer = 0; + #if !defined(_WIN32) && !defined(WIN32) && !defined(__OS2__) && !defined(__RTP__) && !defined(_WRS_KERNEL) #include <sys/time.h> #include <sys/resource.h> @@ -78,9 +81,6 @@ extern int isatty(); /* Saved resource information for the beginning of an operation */ static struct rusage sBegin; -/* True if the timer is enabled */ -static int enableTimer = 0; - /* ** Begin timing an operation */ @@ -124,9 +124,6 @@ static FILETIME ftUserBegin; typedef BOOL (WINAPI *GETPROCTIMES)(HANDLE, LPFILETIME, LPFILETIME, LPFILETIME, LPFILETIME); static GETPROCTIMES getProcessTimesAddr = NULL; -/* True if the timer is enabled */ -static int enableTimer = 0; - /* ** Check to see if we have timer support. Return 1 if necessary ** support found (or found previously). |