libnetapi: style cleanup

This commit is contained in:
Jérôme Duval
2013-11-25 18:29:06 +01:00
parent 72086dfe17
commit 97ddf9019d
7 changed files with 68 additions and 73 deletions
+3 -4
View File
@@ -33,9 +33,9 @@ status_t
BFileRequest::_ProtocolLoop()
{
// FIXME error handling (file does not exists, etc.)
BFile file(fUrl.Path().String(), B_READ_ONLY);
BFile file(fUrl.Path().String(), B_READ_ONLY);
if(file.InitCheck() != B_OK || !file.IsFile())
if (file.InitCheck() != B_OK || !file.IsFile())
return B_PROT_CONNECTION_FAILED;
// Send all notifications to listener, if any
@@ -47,10 +47,9 @@ BFileRequest::_ProtocolLoop()
ssize_t chunkSize;
char chunk[4096];
while((chunkSize = file.Read(chunk, sizeof(chunk))) > 0)
while ((chunkSize = file.Read(chunk, sizeof(chunk))) > 0)
fListener->DataReceived(this, chunk, chunkSize);
}
return B_PROT_SUCCESS;
}