BSocketMessenger: Style fixes.

This commit is contained in:
Rene Gollent 2016-05-01 09:52:50 -04:00
parent f4b9f0fcb5
commit 6dd98243c2

View File

@ -138,7 +138,8 @@ BSocketMessenger::_ReadMessage(BMessage& _message, bigtime_t timeout)
ssize_t readSize = fSocket.Read(&size, sizeof(ssize_t));
if (readSize < 0)
return readSize;
else if (readSize != sizeof(ssize_t))
if (readSize != sizeof(ssize_t))
return B_BAD_VALUE;
if (size <= 0)
@ -152,7 +153,8 @@ BSocketMessenger::_ReadMessage(BMessage& _message, bigtime_t timeout)
readSize = fSocket.Read(buffer, size);
if (readSize < 0)
return readSize;
else if (readSize != size)
if (readSize != size)
return B_MISMATCHED_VALUES;
return _message.Unflatten(buffer);