@@ -66,11 +66,11 @@ } - (size_t)_readNBytes: (size_t)length intoBuffer: (char*)buffer { - ssize_t retLength; + ssize_t ret; if (sock == INVALID_SOCKET) @throw [OFNotConnectedException newWithClass: isa socket: self]; @@ -87,25 +87,25 @@ #endif @throw e; } - if ((retLength = recv(sock, buffer, length, 0)) < 0) + if ((ret = recv(sock, buffer, length, 0)) < 0) @throw [OFReadFailedException newWithClass: isa stream: self requestedLength: length]; - if (retLength == 0) + if (ret == 0) isAtEndOfStream = YES; - return retLength; + return ret; } - (size_t)_writeNBytes: (size_t)length fromBuffer: (const char*)buffer { - ssize_t retLength; + ssize_t ret; if (sock == INVALID_SOCKET) @throw [OFNotConnectedException newWithClass: isa socket: self]; @@ -122,16 +122,16 @@ #endif @throw e; } - if ((retLength = send(sock, buffer, length, 0)) == -1) + if ((ret = send(sock, buffer, length, 0)) == -1) @throw [OFWriteFailedException newWithClass: isa stream: self requestedLength: length]; - return retLength; + return ret; } #ifdef _WIN32 - (void)setBlocking: (BOOL)enable {