nfs4: Multiple style fixes

This commit is contained in:
Pawel Dziepak
2013-01-04 22:25:21 +01:00
parent 4d12040737
commit dadd844f36
5 changed files with 7 additions and 6 deletions
@@ -563,8 +563,8 @@ Connection::SetTo(Connection **_connection, int socket,
status_t
Connection::Connect()
{
const sockaddr& address =
*reinterpret_cast<const sockaddr*>(&fPeerAddress);
const sockaddr& address
= *reinterpret_cast<const sockaddr*>(&fPeerAddress);
switch (fPeerAddress.fProtocol) {
case IPPROTO_TCP:
@@ -59,8 +59,8 @@ FileInfo::CreateName(const char* dirPath, const char* name)
return B_NO_MEMORY;
if (dirPath != NULL) {
char* path = reinterpret_cast<char*>(malloc(strlen(name) + 2 +
strlen(dirPath)));
char* path = reinterpret_cast<char*>(malloc(strlen(name) + 2
+ strlen(dirPath)));
if (path == NULL)
return B_NO_MEMORY;
@@ -51,6 +51,7 @@ IdMap::InitStatus()
return fInitStatus;
}
extern IdMap* gIdMapper;
extern mutex gIdMapperLock;
@@ -294,7 +294,7 @@ OpenState::Close()
// recognize retried CLOSE requests so we just assume that BAD_STATEID
// on CLOSE request is just a result of retransmission.
if (reply.NFS4Error() == NFS4ERR_BAD_STATEID) {
fFileSystem->OpenOwnerSequenceUnlock(sequence);
fFileSystem->OpenOwnerSequenceUnlock(sequence);
return B_OK;
}
@@ -716,7 +716,7 @@ get_new_vnode(fs_volume* volume, ino_t id, VnodeToInode** _vti)
return B_OK;
}
return get_vnode(volume, id, reinterpret_cast<void**>(_vti)); //_OK;
return get_vnode(volume, id, reinterpret_cast<void**>(_vti));
}