summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2004-10-22 10:45:00 +0300
committerunknown <heikki@hundin.mysql.fi>2004-10-22 10:45:00 +0300
commitabffc514bad23cbeaec9a3c52f6bd031f15460e9 (patch)
treeadbe508a1923f2356485cc587af5ea121e8af03e
parenta05d9b79e3e3242eea60880632eca6b70ee5c902 (diff)
downloadmariadb-git-abffc514bad23cbeaec9a3c52f6bd031f15460e9.tar.gz
os0file.c:
Add typecast from ulint to ssize_t in pread and pwrite, so that the type is according to the Linux man page; this will probably not help to fix the HP-UX 32-bit pwrite failure, since the compiler should do the appropriate typecasts anyway innobase/os/os0file.c: Add typecast from ulint to ssize_t in pread and pwrite, so that the type is according to the Linux man page; this will probably not help to fix the HP-UX 32-bit pwrite failure, since the compiler should do the appropriate typecasts anyway
-rw-r--r--innobase/os/os0file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/innobase/os/os0file.c b/innobase/os/os0file.c
index b09c48319c3..6ed3720cc84 100644
--- a/innobase/os/os0file.c
+++ b/innobase/os/os0file.c
@@ -1186,7 +1186,7 @@ os_file_pread(
os_file_n_pending_preads++;
os_mutex_exit(os_file_count_mutex);
- n_bytes = pread(file, buf, n, offs);
+ n_bytes = pread(file, buf, (ssize_t)n, offs);
os_mutex_enter(os_file_count_mutex);
os_file_n_pending_preads--;
@@ -1211,7 +1211,7 @@ os_file_pread(
return(ret);
}
- ret = read(file, buf, n);
+ ret = read(file, buf, (ssize_t)n);
os_mutex_exit(os_file_seek_mutexes[i]);
@@ -1261,7 +1261,7 @@ os_file_pwrite(
os_file_n_pending_pwrites++;
os_mutex_exit(os_file_count_mutex);
- ret = pwrite(file, buf, n, offs);
+ ret = pwrite(file, buf, (ssize_t)n, offs);
os_mutex_enter(os_file_count_mutex);
os_file_n_pending_pwrites--;
@@ -1296,7 +1296,7 @@ os_file_pwrite(
return(ret);
}
- ret = write(file, buf, n);
+ ret = write(file, buf, (ssize_t)n);
if (srv_unix_file_flush_method != SRV_UNIX_LITTLESYNC
&& srv_unix_file_flush_method != SRV_UNIX_NOSYNC