[ox] GCC13 fix
This commit is contained in:
parent
fcf0a9be95
commit
bd665cfc35
4
deps/ox/src/ox/fs/filesystem/directory.hpp
vendored
4
deps/ox/src/ox/fs/filesystem/directory.hpp
vendored
@ -269,7 +269,7 @@ Error Directory<FileStore, InodeId_t>::remove(PathIterator path, FileName *nameB
|
|||||||
for (auto i = buff->iterator(); i.valid(); i.next()) {
|
for (auto i = buff->iterator(); i.valid(); i.next()) {
|
||||||
auto data = i->data();
|
auto data = i->data();
|
||||||
if (data.valid()) {
|
if (data.valid()) {
|
||||||
if (data->name == name) {
|
if (name == data->name) {
|
||||||
oxReturnError(buff->free(i));
|
oxReturnError(buff->free(i));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -319,7 +319,7 @@ Result<typename FileStore::InodeId_t> Directory<FileStore, InodeId_t>::findEntry
|
|||||||
auto data = i->data();
|
auto data = i->data();
|
||||||
if (data.valid()) {
|
if (data.valid()) {
|
||||||
oxTracef("ox::fs::Directory::findEntry", "Comparing \"{}\" to \"{}\"", name, data->name);
|
oxTracef("ox::fs::Directory::findEntry", "Comparing \"{}\" to \"{}\"", name, data->name);
|
||||||
if (data->name == name) {
|
if (name == data->name) {
|
||||||
oxTracef("ox::fs::Directory::findEntry", "\"{}\" match found.", name);
|
oxTracef("ox::fs::Directory::findEntry", "\"{}\" match found.", name);
|
||||||
return static_cast<InodeId_t>(data->inode);
|
return static_cast<InodeId_t>(data->inode);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user