Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1488)

Unified Diff: runtime/bin/socket_linux.cc

Issue 8662006: Fix a number of issues with the process handling (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698