diff options
author | pweilbacher <pweilbacher@noemail.net> | 2007-12-30 23:29:06 +0000 |
---|---|---|
committer | pweilbacher <pweilbacher@noemail.net> | 2007-12-30 23:29:06 +0000 |
commit | efd9eff4758bad6030e570a59d6d13eadcd04300 (patch) | |
tree | 768b0f5df083d7253fa6d028d7889e44fbb33bf6 /src/mutex_os2.c | |
parent | 41c58b78b9896a3623fee166394f88accc8738be (diff) | |
download | sqlite-efd9eff4758bad6030e570a59d6d13eadcd04300.tar.gz sqlite-efd9eff4758bad6030e570a59d6d13eadcd04300.zip |
move variable declaration to be able to compile sqlite3_mutex_alloc() with older compilers (like EMX/gcc 2.8.1) (CVS 4646)
FossilOrigin-Name: a568a9cf3705f45c4734f212eb359cadd3b0c897
Diffstat (limited to 'src/mutex_os2.c')
-rw-r--r-- | src/mutex_os2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mutex_os2.c b/src/mutex_os2.c index e0258c756..d208c95c0 100644 --- a/src/mutex_os2.c +++ b/src/mutex_os2.c @@ -11,7 +11,7 @@ ************************************************************************* ** This file contains the C functions that implement mutexes for OS/2 ** -** $Id: mutex_os2.c,v 1.3 2007/10/02 19:56:04 pweilbacher Exp $ +** $Id: mutex_os2.c,v 1.4 2007/12/30 23:29:07 pweilbacher Exp $ */ #include "sqliteInt.h" @@ -103,8 +103,8 @@ sqlite3_mutex *sqlite3_mutex_alloc(int iType){ DosEnterCritSec(); lock++; if( lock == 1 ) { - DosExitCritSec(); int i; + DosExitCritSec(); for(i = 0; i < sizeof(staticMutexes)/sizeof(staticMutexes[0]); i++) { staticMutexes[i].mutexName = (PSZ)malloc(mutex_name_len + 1); sqlite3_snprintf(mutex_name_len + 1, /* one more for the number */ |