Skip to content

Commit

Permalink
Merge pull request #476 from uyjulian/dirent_unknown_type
Browse files Browse the repository at this point in the history
Rename the unknown type in dirent to something more useful
  • Loading branch information
fjtrujy authored Dec 10, 2023
2 parents cf2236b + 4f95955 commit 8188748
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/include/io_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ typedef struct
{
io_stat_t stat;
char name[256];
unsigned int unknown;
void *privdata;
} io_dirent_t;

#endif /* __IO_COMMON_H__ */
2 changes: 1 addition & 1 deletion common/include/iox_stat.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ typedef struct
{
iox_stat_t stat;
char name[256];
unsigned int unknown;
void *privdata;
} iox_dirent_t __attribute__((aligned(64)));

/* The following defines are only supported by ioman. */
Expand Down
1 change: 0 additions & 1 deletion iop/cdvd/cdfs/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ static int fio_dread(iop_file_t *fd, io_dirent_t *dirent)
memcpy(dirent->stat.atime, entry.dateStamp, 8);
memcpy(dirent->stat.mtime, entry.dateStamp, 8);
strncpy(dirent->name, entry.filename, 128);
dirent->unknown = 0;

fod_table[i].filesIndex++;
return fod_table[i].filesIndex;
Expand Down

0 comments on commit 8188748

Please sign in to comment.