Below is the list of changes that have just been committed into a local
5.0 repository of heikki. When heikki does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.1969 05/06/10 14:18:36 heikki@stripped +2 -0
os0sync.c, os0file.c:
Apply Georg Richter's fixes to remove compilation errors on 64-bit Windows
innobase/os/os0sync.c
1.25 05/06/10 14:18:14 heikki@stripped +3 -3
Apply Georg Richter's fixes to remove compilation errors on 64-bit Windows
innobase/os/os0file.c
1.104 05/06/10 14:18:14 heikki@stripped +9 -9
Apply Georg Richter's fixes to remove compilation errors on 64-bit Windows
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: heikki
# Host: hundin.mysql.fi
# Root: /home/heikki/mysql-5.0
--- 1.103/innobase/os/os0file.c Wed Apr 6 21:29:10 2005
+++ 1.104/innobase/os/os0file.c Fri Jun 10 14:18:14 2005
@@ -605,7 +605,7 @@
lpFindFileData = ut_malloc(sizeof(WIN32_FIND_DATA));
- dir = FindFirstFile(path, lpFindFileData);
+ dir = FindFirstFile((LPCTSTR) path, lpFindFileData);
ut_free(lpFindFileData);
@@ -686,15 +686,15 @@
ret = FindNextFile(dir, lpFindFileData);
if (ret) {
- ut_a(strlen(lpFindFileData->cFileName) < OS_FILE_MAX_PATH);
+ ut_a(strlen((char *) lpFindFileData->cFileName) < OS_FILE_MAX_PATH);
- if (strcmp(lpFindFileData->cFileName, ".") == 0
- || strcmp(lpFindFileData->cFileName, "..") == 0) {
+ if (strcmp((char *) lpFindFileData->cFileName, ".") == 0
+ || strcmp((char *) lpFindFileData->cFileName, "..") == 0) {
goto next_file;
}
- strcpy(info->name, lpFindFileData->cFileName);
+ strcpy(info->name, (char *) lpFindFileData->cFileName);
info->size = (ib_longlong)(lpFindFileData->nFileSizeLow)
+ (((ib_longlong)(lpFindFileData->nFileSizeHigh)) << 32);
@@ -830,7 +830,7 @@
#ifdef __WIN__
BOOL rcode;
- rcode = CreateDirectory(pathname, NULL);
+ rcode = CreateDirectory((LPCTSTR) pathname, NULL);
if (!(rcode != 0 ||
(GetLastError() == ERROR_ALREADY_EXISTS && !fail_if_exists))) {
/* failure */
@@ -914,7 +914,7 @@
ut_error;
}
- file = CreateFile(name,
+ file = CreateFile((LPCTSTR) name,
access,
FILE_SHARE_READ | FILE_SHARE_WRITE,
/* file can be read ansd written also
@@ -1053,7 +1053,7 @@
ut_error;
}
- file = CreateFile(name,
+ file = CreateFile((LPCTSTR) name,
access,
share_mode,
NULL, /* default security attributes */
@@ -1200,7 +1200,7 @@
ut_error;
}
- file = CreateFile(name,
+ file = CreateFile((LPCTSTR) name,
GENERIC_READ | GENERIC_WRITE, /* read and write
access */
share_mode, /* File can be read also by other
--- 1.24/innobase/os/os0sync.c Mon Mar 7 12:03:27 2005
+++ 1.25/innobase/os/os0sync.c Fri Jun 10 14:18:14 2005
@@ -121,7 +121,7 @@
event->handle = CreateEvent(NULL,/* No security attributes */
TRUE, /* Manual reset */
FALSE, /* Initial state nonsignaled */
- name);
+ (LPCTSTR) name);
if (!event->handle) {
fprintf(stderr,
"InnoDB: Could not create a Windows event semaphore; Windows error %lu\n",
@@ -177,7 +177,7 @@
event->handle = CreateEvent(NULL,/* No security attributes */
FALSE, /* Auto-reset */
FALSE, /* Initial state nonsignaled */
- name);
+ (LPCTSTR) name);
if (!event->handle) {
fprintf(stderr,
@@ -440,7 +440,7 @@
mutex = CreateMutex(NULL, /* No security attributes */
FALSE, /* Initial state: no owner */
- name);
+ (LPCTSTR) name);
ut_a(mutex);
#else
os_fast_mutex_t* mutex;
| Thread |
|---|
| • bk commit into 5.0 tree (heikki:1.1969) | Heikki Tuuri | 10 Jun |