/ Check-in [f8a70501]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:quieting compiler warning about pointer/int conversion size mismatch (CVS 5602)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f8a70501c234545b3030144ac6bcbfaa0d2b0069
User & Date: aswift 2008-08-22 18:41:37
Context
2008-08-23
16:17
Do not incorrectly detect corruption when an auto-vacuum database is converted to a non-auto-vacuum database within a vacuum. Ticket #3332. (CVS 5603) check-in: cb869946 user: danielk1977 tags: trunk
2008-08-22
18:41
quieting compiler warning about pointer/int conversion size mismatch (CVS 5602) check-in: f8a70501 user: aswift tags: trunk
17:34
Remove dead code. (CVS 5601) check-in: 6de9c084 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   ******************************************************************************
    12     12   **
    13     13   ** This file contains code that is specific to Unix systems.
    14     14   **
    15         -** $Id: os_unix.c,v 1.197 2008/08/22 00:47:54 drh Exp $
           15  +** $Id: os_unix.c,v 1.198 2008/08/22 18:41:37 aswift Exp $
    16     16   */
    17     17   #include "sqliteInt.h"
    18     18   #if SQLITE_OS_UNIX              /* This file is used on unix only */
    19     19   
    20     20   /*
    21     21   ** If SQLITE_ENABLE_LOCKING_STYLE is defined, then several different 
    22     22   ** locking implementations are provided:
................................................................................
   635    635     int i;
   636    636     struct statfs fsInfo;
   637    637   
   638    638     if( !filePath ){
   639    639       return LOCKING_STYLE_NONE;
   640    640     }
   641    641     if( pVfs->pAppData ){
   642         -    return (int)pVfs->pAppData;
          642  +    return SQLITE_PTR_TO_INT(pVfs->pAppData);
   643    643     }
   644    644   
   645    645     if( statfs(filePath, &fsInfo) != -1 ){
   646    646       if( fsInfo.f_flags & MNT_RDONLY ){
   647    647         return LOCKING_STYLE_NONE;
   648    648       }
   649    649       for(i=0; aMap[i].zFilesystem; i++){