Index: src/os_unix.c ================================================================== --- src/os_unix.c +++ src/os_unix.c @@ -2443,11 +2443,11 @@ int h, /* Open file descriptor of file being opened */ OsFile **pId, /* Write completed initialization here */ const char *zFilename, /* Name of the file being opened */ int delFlag /* Delete-on-or-before-close flag */ ){ - sqlite3LockingStyle lockStyle; + sqlite3LockingStyle lockingStyle; unixFile *pNew; unixFile f; int rc; lockingStyle = sqlite3DetectLockingStyle(zFilename, f.h); @@ -2483,11 +2483,11 @@ sqlite3OsLeaveMutex(); *pId = 0; return SQLITE_NOMEM; }else{ *pNew = f; - switch(lockStyle) { + switch(lockingStyle) { case afpLockingStyle: /* afp locking uses the file path so it needs to be included in ** the afpLockingContext */ pNew->pMethod = &sqlite3AFPLockingUnixIoMethod; pNew->lockingContext =