diff options
author | Kristian Monsen <kristianm@google.com> | 2010-08-17 16:38:11 +0100 |
---|---|---|
committer | Kristian Monsen <kristianm@google.com> | 2010-08-17 16:43:53 +0100 |
commit | 754f8e53eaed9e63225b665b8406c3d1072b7905 (patch) | |
tree | 899b451dd4bb8f0d58ee291ac13eea446b147598 | |
parent | 606135ebf06650c5f2be1d453ab6fe1b72aa9921 (diff) | |
download | external_chromium-754f8e53eaed9e63225b665b8406c3d1072b7905.zip external_chromium-754f8e53eaed9e63225b665b8406c3d1072b7905.tar.gz external_chromium-754f8e53eaed9e63225b665b8406c3d1072b7905.tar.bz2 |
pwrite fixed in bionic so removing local change.
Change-Id: I73494647479ae622a37fab29ad84fc24d9c15de8
-rw-r--r-- | net/disk_cache/file_posix.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/disk_cache/file_posix.cc b/net/disk_cache/file_posix.cc index 38834a6..05f2cc5 100644 --- a/net/disk_cache/file_posix.cc +++ b/net/disk_cache/file_posix.cc @@ -307,11 +307,7 @@ bool File::Write(const void* buffer, size_t buffer_len, size_t offset) { if (buffer_len > ULONG_MAX || offset > ULONG_MAX) return false; -#ifdef ANDROID - int ret = pwrite(platform_file_, const_cast<void*>(buffer), buffer_len, offset); -#else int ret = pwrite(platform_file_, buffer, buffer_len, offset); -#endif return (static_cast<size_t>(ret) == buffer_len); } |