Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | 73c24ae363ee1b2234a3e322df124577ab3c7dcf |
|---|---|
| Date: | 2010-03-18 14:20:33 |
| User: | drh |
| Comment: | Fix some compiler warnings on windows. |
Tags And Properties
- bgcolor=#d0c0ff added by [ea4ad85fc7] on 2010-03-18 14:29:21
- branch=trunk inherited from [a28c83647d]
- date=2010-03-18 14:20:33 added by [ea4ad85fc7] on 2010-03-18 14:29:21
- sym-release added by [ea4ad85fc7] on 2010-03-18 14:29:21
- sym-trunk inherited from [a28c83647d]
Changes
Changes to src/db.c
514 z = mprintf("%s", zDefault); 514 z = mprintf("%s", zDefault); 515 }else{ 515 }else{ 516 z = 0; 516 z = 0; 517 } 517 } 518 db_finalize(&s); 518 db_finalize(&s); 519 return z; 519 return z; 520 } 520 } > 521 > 522 #ifdef __MINGW32__ > 523 extern char *sqlite3_win32_mbcs_to_utf8(const char*); > 524 #endif 521 525 522 /* 526 /* 523 ** Initialize a new database file with the given schema. If anything 527 ** Initialize a new database file with the given schema. If anything 524 ** goes wrong, call db_err() to exit. 528 ** goes wrong, call db_err() to exit. 525 */ 529 */ 526 void db_init_database( 530 void db_init_database( 527 const char *zFileName, /* Name of database file to create */ 531 const char *zFileName, /* Name of database file to create */
Changes to src/diffcmd.c
47 } 47 } 48 blob_append(pBlob, zIn, -1); 48 blob_append(pBlob, zIn, -1); 49 } 49 } 50 50 51 /* 51 /* 52 ** This function implements a cross-platform "system()" interface. 52 ** This function implements a cross-platform "system()" interface. 53 */ 53 */ 54 int portable_system(char *zOrigCmd){ | 54 int portable_system(const char *zOrigCmd){ 55 int rc; 55 int rc; 56 #ifdef __MINGW32__ 56 #ifdef __MINGW32__ 57 /* On windows, we have to put double-quotes around the entire command. 57 /* On windows, we have to put double-quotes around the entire command. 58 ** Who knows why - this is just the way windows works. 58 ** Who knows why - this is just the way windows works. 59 */ 59 */ 60 char *zNewCmd = mprintf("\"%s\"", zOrigCmd); 60 char *zNewCmd = mprintf("\"%s\"", zOrigCmd); 61 rc = system(zNewCmd); 61 rc = system(zNewCmd);
Changes to src/winhttp.c
135 135 136 /* 136 /* 137 ** Start a listening socket and process incoming HTTP requests on 137 ** Start a listening socket and process incoming HTTP requests on 138 ** that socket. 138 ** that socket. 139 */ 139 */ 140 void win32_http_server( 140 void win32_http_server( 141 int mnPort, int mxPort, /* Range of allowed TCP port numbers */ 141 int mnPort, int mxPort, /* Range of allowed TCP port numbers */ 142 char *zBrowser, /* Command to launch browser. (Or NULL) */ | 142 const char *zBrowser, /* Command to launch browser. (Or NULL) */ 143 char *zStopper, /* Stop server when this file is exists (Or NULL) */ | 143 const char *zStopper, /* Stop server when this file is exists (Or NULL) */ 144 char *zNotFound /* The --notfound option, or NULL */ | 144 const char *zNotFound /* The --notfound option, or NULL */ 145 ){ 145 ){ 146 WSADATA wd; 146 WSADATA wd; 147 SOCKET s = INVALID_SOCKET; 147 SOCKET s = INVALID_SOCKET; 148 SOCKADDR_IN addr; 148 SOCKADDR_IN addr; 149 int idCnt = 0; 149 int idCnt = 0; 150 int iPort = mnPort; 150 int iPort = mnPort; 151 char *zNotFoundOption; 151 char *zNotFoundOption;