Skip to content

Commit

Permalink
lxfs: remove unused variable and ensure proper cast
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Sep 16, 2024
1 parent 2786485 commit 1fa59eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/lxfs/find.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ bool lxfsFindPath(uint8_t disk, int partition, const char *path, LXFSDirectoryEn

bool found = false;
int pathIndex = 1;
int blockSizeBytes = getBlockSize(disk, partition) * getSectorSize(disk, partition);

while(!found) {
if(((entry->flags >> LXFS_DIR_TYPE_SHIFT) & LXFS_DIR_TYPE_MASK) != LXFS_DIR_TYPE_DIR) {
Expand All @@ -119,7 +118,7 @@ bool lxfsFindPath(uint8_t disk, int partition, const char *path, LXFSDirectoryEn
while(entry->flags & LXFS_DIR_VALID) {
//printf("lxfs: searching for %s, found %s\n", (char *)LXFS_TEXT_BUFFER, entry->name);

if(!strcmp((const char *)LXFS_TEXT_BUFFER, entry->name)) {
if(!strcmp((const char *)LXFS_TEXT_BUFFER, (const char *)entry->name)) {
found = true;
break;
}
Expand Down

0 comments on commit 1fa59eb

Please sign in to comment.