ramfs: GCC 2 fixes.

This commit is contained in:
Augustin Cavalier 2019-08-31 18:47:56 -04:00
parent d2ab19b331
commit 181d68fbd4
2 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ DirectoryEntryTable::RemoveEntry(ino_t id, Entry *child)
status_t status_t
DirectoryEntryTable::RemoveEntry(ino_t id, const char *name) DirectoryEntryTable::RemoveEntry(ino_t id, const char *name)
{ {
Entry* child = fTable.Lookup(typename DirectoryEntryHash::Key(id, name)); Entry* child = fTable.Lookup(DirectoryEntryHash::Key(id, name));
if (!child) if (!child)
return B_NAME_NOT_FOUND; return B_NAME_NOT_FOUND;
return fTable.Remove(child) ? B_OK : B_ERROR; return fTable.Remove(child) ? B_OK : B_ERROR;
@ -145,7 +145,7 @@ DirectoryEntryTable::RemoveEntry(ino_t id, const char *name)
Entry * Entry *
DirectoryEntryTable::GetEntry(ino_t id, const char *name) DirectoryEntryTable::GetEntry(ino_t id, const char *name)
{ {
Entry *child = fTable.Lookup(typename DirectoryEntryHash::Key(id, name)); Entry *child = fTable.Lookup(DirectoryEntryHash::Key(id, name));
return child; return child;
} }

View File

@ -30,7 +30,7 @@ NodeTable::AddNode(Node *node)
{ {
status_t error = (node ? B_OK : B_BAD_VALUE); status_t error = (node ? B_OK : B_BAD_VALUE);
if (error == B_OK) { if (error == B_OK) {
if (fNodes.Lookup(node->GetID()) != nullptr) if (fNodes.Lookup(node->GetID()) != NULL)
fNodes.Remove(node); fNodes.Remove(node);
SET_ERROR(error, fNodes.Insert(node)); SET_ERROR(error, fNodes.Insert(node));
} }