Chromium Code Reviews| Index: runtime/bin/socket_linux.cc |
| diff --git a/runtime/bin/socket_linux.cc b/runtime/bin/socket_linux.cc |
| index 24acd60b0749f582923cce993ccc9df9d53dd0ed..0e2ed2a8facf8d499f6612ffc4e7762d2501d2d1 100644 |
| --- a/runtime/bin/socket_linux.cc |
| +++ b/runtime/bin/socket_linux.cc |
| @@ -60,18 +60,17 @@ intptr_t Socket::Available(intptr_t fd) { |
| } |
| -intptr_t Socket::Read(intptr_t fd, |
| - void* buffer, |
| - intptr_t num_bytes) { |
| +int Socket::Read(intptr_t fd, void* buffer, intptr_t num_bytes) { |
| ASSERT(fd >= 0); |
| - intptr_t read_bytes = read(fd, buffer, num_bytes); |
| + ssize_t read_bytes = read(fd, buffer, num_bytes); |
| return read_bytes; |
| } |
| intptr_t Socket::Write(intptr_t fd, const void* buffer, intptr_t num_bytes) { |
|
Mads Ager (google)
2011/11/23 12:45:19
You changed intptr_t to int in the interface?
Søren Gjesse
2011/11/23 14:50:18
Done.
|
| ASSERT(fd >= 0); |
| - return write(fd, buffer, num_bytes); |
| + ssize_t written_bytes = write(fd, buffer, num_bytes); |
| + return written_bytes; |
| } |