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

Unified Diff: runtime/bin/socket_impl.dart

Issue 9816005: Fix checked mode errors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_impl.dart
diff --git a/runtime/bin/socket_impl.dart b/runtime/bin/socket_impl.dart
index 61e4c1717b44673f400624eb645dc712ad235993..050efd9f60d0df0d18d626d6fef63699e48324df 100644
--- a/runtime/bin/socket_impl.dart
+++ b/runtime/bin/socket_impl.dart
@@ -267,9 +267,9 @@ class _ServerSocket extends _SocketBase implements ServerSocket {
_ServerSocket._internal();
- bool _accept(Socket socket) native "ServerSocket_Accept";
+ _accept(Socket socket) native "ServerSocket_Accept";
- bool _createBindListen(String bindAddress, int port, int backlog)
+ _createBindListen(String bindAddress, int port, int backlog)
native "ServerSocket_CreateBindListen";
void set onConnection(void callback(Socket connection)) {
@@ -357,7 +357,7 @@ class _Socket extends _SocketBase implements Socket {
if ((offset + bytes) > buffer.length) {
throw new IndexOutOfRangeException(offset + bytes);
}
- int result = _readList(buffer, offset, bytes);
+ var result = _readList(buffer, offset, bytes);
if (result is OSError) {
_reportError(result, "Read failed");
return -1;
@@ -368,7 +368,7 @@ class _Socket extends _SocketBase implements Socket {
SocketIOException("Error: readList failed - invalid socket handle");
}
- int _readList(List<int> buffer, int offset, int bytes)
+ _readList(List<int> buffer, int offset, int bytes)
native "Socket_ReadList";
int writeList(List<int> buffer, int offset, int bytes) {
@@ -418,7 +418,7 @@ class _Socket extends _SocketBase implements Socket {
throw new SocketIOException("writeList failed - invalid socket handle");
}
- int _writeList(List<int> buffer, int offset, int bytes)
+ _writeList(List<int> buffer, int offset, int bytes)
native "Socket_WriteList";
bool _isErrorResponse(response) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698