ramfs: GCC 2 fixes.
This commit is contained in:
parent
d2ab19b331
commit
181d68fbd4
@ -135,7 +135,7 @@ DirectoryEntryTable::RemoveEntry(ino_t id, Entry *child)
|
||||
status_t
|
||||
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)
|
||||
return B_NAME_NOT_FOUND;
|
||||
return fTable.Remove(child) ? B_OK : B_ERROR;
|
||||
@ -145,7 +145,7 @@ DirectoryEntryTable::RemoveEntry(ino_t id, const char *name)
|
||||
Entry *
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ NodeTable::AddNode(Node *node)
|
||||
{
|
||||
status_t error = (node ? B_OK : B_BAD_VALUE);
|
||||
if (error == B_OK) {
|
||||
if (fNodes.Lookup(node->GetID()) != nullptr)
|
||||
if (fNodes.Lookup(node->GetID()) != NULL)
|
||||
fNodes.Remove(node);
|
||||
SET_ERROR(error, fNodes.Insert(node));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user