Fossil

Check-in [73c24ae3]
Login

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

Overview
Comment:Fix some compiler warnings on windows.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | release
Files: files | file ages | folders
SHA1: 73c24ae363ee1b2234a3e322df124577ab3c7dcf
User & Date: drh 2010-03-18 14:20:33
References
2010-12-21
16:26 Fixed ticket [f64f9b57]: warnings introduced in db.c since checkin [2f58d48cab] plus 2 other changes artifact: 7a47aef6 user: anonymous
2010-05-20
08:09 New ticket [a5a415b4] new wiki page with the name of Chinese. artifact: 6fd34534 user: anonymous
2010-05-19
12:27 New ticket [0830da5a] wiki sandbox does not support attachments. artifact: 11d4be03 user: anonymous
12:25 New ticket [1cc5145a] wiki does not support images. artifact: 49fe53c1 user: anonymous
2010-05-11
06:29 New ticket [9d0f2745] Ticket attachment shows garbage. artifact: d6c2cfd7 user: anonymous
2010-05-02
11:17 New ticket [66be806d] Out of memory error when cloning non-existant repository. artifact: bd4337fe user: anonymous
2010-03-31
13:40 New ticket [18ea58d2] Unable to login. artifact: 2ef586ef user: anonymous
2010-03-26
13:29 New ticket [0120af47] branch new only works in open working directory (Win32). artifact: fcd68589 user: anonymous
Context
2010-03-18
14:28
Update the script that builds the download page. check-in: d5f6a272 user: drh tags: trunk
14:20
Fix some compiler warnings on windows. check-in: 73c24ae3 user: drh tags: trunk, release
14:11
Fix some permissions problems on wiki pages. Always show "Empty Page" text for wiki pages that contain no text. check-in: f442eb2a user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/db.c.

514
515
516
517
518
519
520




521
522
523
524
525
526
527
    z = mprintf("%s", zDefault);
  }else{
    z = 0;
  }
  db_finalize(&s);
  return z;
}





/*
** Initialize a new database file with the given schema.  If anything
** goes wrong, call db_err() to exit.
*/
void db_init_database(
  const char *zFileName,   /* Name of database file to create */







>
>
>
>







514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
    z = mprintf("%s", zDefault);
  }else{
    z = 0;
  }
  db_finalize(&s);
  return z;
}

#ifdef __MINGW32__
extern char *sqlite3_win32_mbcs_to_utf8(const char*);
#endif

/*
** Initialize a new database file with the given schema.  If anything
** goes wrong, call db_err() to exit.
*/
void db_init_database(
  const char *zFileName,   /* Name of database file to create */

Changes to src/diffcmd.c.

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
  }
  blob_append(pBlob, zIn, -1);
}

/*
** This function implements a cross-platform "system()" interface.
*/
int portable_system(char *zOrigCmd){
  int rc;
#ifdef __MINGW32__
  /* On windows, we have to put double-quotes around the entire command.
  ** Who knows why - this is just the way windows works.
  */
  char *zNewCmd = mprintf("\"%s\"", zOrigCmd);
  rc = system(zNewCmd);







|







47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
  }
  blob_append(pBlob, zIn, -1);
}

/*
** This function implements a cross-platform "system()" interface.
*/
int portable_system(const char *zOrigCmd){
  int rc;
#ifdef __MINGW32__
  /* On windows, we have to put double-quotes around the entire command.
  ** Who knows why - this is just the way windows works.
  */
  char *zNewCmd = mprintf("\"%s\"", zOrigCmd);
  rc = system(zNewCmd);

Changes to src/winhttp.c.

135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151

/*
** Start a listening socket and process incoming HTTP requests on
** that socket.
*/
void win32_http_server(
  int mnPort, int mxPort,   /* Range of allowed TCP port numbers */
  char *zBrowser,           /* Command to launch browser.  (Or NULL) */
  char *zStopper,           /* Stop server when this file is exists (Or NULL) */
  char *zNotFound           /* The --notfound option, or NULL */
){
  WSADATA wd;
  SOCKET s = INVALID_SOCKET;
  SOCKADDR_IN addr;
  int idCnt = 0;
  int iPort = mnPort;
  char *zNotFoundOption;







|
|
|







135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151

/*
** Start a listening socket and process incoming HTTP requests on
** that socket.
*/
void win32_http_server(
  int mnPort, int mxPort,   /* Range of allowed TCP port numbers */
  const char *zBrowser,     /* Command to launch browser.  (Or NULL) */
  const char *zStopper,     /* Stop server when this file is exists (Or NULL) */
  const char *zNotFound     /* The --notfound option, or NULL */
){
  WSADATA wd;
  SOCKET s = INVALID_SOCKET;
  SOCKADDR_IN addr;
  int idCnt = 0;
  int iPort = mnPort;
  char *zNotFoundOption;