mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 09:59:18 +01:00
fix for latest newlib
This commit is contained in:
parent
1b5262249b
commit
d6bb60a4ba
@ -1111,19 +1111,14 @@ void _FAT_directory_entryStat (PARTITION* partition, DIR_ENTRY* entry, struct st
|
|||||||
0,
|
0,
|
||||||
u8array_to_u16 (entry->entryData, DIR_ENTRY_aDate)
|
u8array_to_u16 (entry->entryData, DIR_ENTRY_aDate)
|
||||||
);
|
);
|
||||||
st->st_spare1 = 0;
|
|
||||||
st->st_mtime = _FAT_filetime_to_time_t (
|
st->st_mtime = _FAT_filetime_to_time_t (
|
||||||
u8array_to_u16 (entry->entryData, DIR_ENTRY_mTime),
|
u8array_to_u16 (entry->entryData, DIR_ENTRY_mTime),
|
||||||
u8array_to_u16 (entry->entryData, DIR_ENTRY_mDate)
|
u8array_to_u16 (entry->entryData, DIR_ENTRY_mDate)
|
||||||
);
|
);
|
||||||
st->st_spare2 = 0;
|
|
||||||
st->st_ctime = _FAT_filetime_to_time_t (
|
st->st_ctime = _FAT_filetime_to_time_t (
|
||||||
u8array_to_u16 (entry->entryData, DIR_ENTRY_cTime),
|
u8array_to_u16 (entry->entryData, DIR_ENTRY_cTime),
|
||||||
u8array_to_u16 (entry->entryData, DIR_ENTRY_cDate)
|
u8array_to_u16 (entry->entryData, DIR_ENTRY_cDate)
|
||||||
);
|
);
|
||||||
st->st_spare3 = 0;
|
|
||||||
st->st_blksize = partition->bytesPerSector; // Prefered file I/O block size
|
st->st_blksize = partition->bytesPerSector; // Prefered file I/O block size
|
||||||
st->st_blocks = (st->st_size + partition->bytesPerSector - 1) / partition->bytesPerSector; // File size in blocks
|
st->st_blocks = (st->st_size + partition->bytesPerSector - 1) / partition->bytesPerSector; // File size in blocks
|
||||||
st->st_spare4[0] = 0;
|
|
||||||
st->st_spare4[1] = 0;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user