Skip to content

Commit cc67cdd

Browse files
committed
fix stat for latest newlib
1 parent 8aadc49 commit cc67cdd

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

libiso9660/iso9660.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,8 @@ static void stat_entry(DIR_ENTRY *entry, struct stat *st)
167167
st->st_rdev = st->st_dev;
168168
st->st_size = entry->size;
169169
st->st_atime = 0;
170-
st->st_spare1 = 0;
171170
st->st_mtime = 0;
172-
st->st_spare2 = 0;
173171
st->st_ctime = 0;
174-
st->st_spare3 = 0;
175172
st->st_blksize = SECTOR_SIZE;
176173
st->st_blocks = (entry->size + SECTOR_SIZE - 1) / SECTOR_SIZE;
177174
st->st_spare4[0] = 0;

libtinysmb/smb_devoptab.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,11 +1043,8 @@ static int dentry_to_stat(SMBDIRENTRY *dentry, struct stat *st)
10431043
st->st_gid = 2; // Faked
10441044
st->st_size = dentry->size;
10451045
st->st_atime = dentry->atime/10000000.0 - 11644473600LL;
1046-
st->st_spare1 = 0;
10471046
st->st_mtime = dentry->mtime/10000000.0 - 11644473600LL;
1048-
st->st_spare2 = 0;
10491047
st->st_ctime = dentry->ctime/10000000.0 - 11644473600LL;
1050-
st->st_spare3 = 0;
10511048
st->st_blksize = 1024;
10521049
st->st_blocks = (st->st_size + st->st_blksize - 1) / st->st_blksize; // File size in blocks
10531050
st->st_spare4[0] = 0;

0 commit comments

Comments
 (0)