@@ -65,8 +65,8 @@ struct fsentry {
65
65
struct timespec st_atim ;
66
66
struct timespec st_mtim ;
67
67
struct timespec st_ctim ;
68
- };
69
- };
68
+ } s ;
69
+ } u ;
70
70
};
71
71
72
72
/*
@@ -127,7 +127,7 @@ static struct fsentry *fsentry_alloc(struct fscache *cache, struct fsentry *list
127
127
/* init the rest of the structure */
128
128
fsentry_init (fse , list , nm , len );
129
129
fse -> next = NULL ;
130
- fse -> refcnt = 1 ;
130
+ fse -> u . refcnt = 1 ;
131
131
return fse ;
132
132
}
133
133
@@ -139,7 +139,7 @@ inline static void fsentry_addref(struct fsentry *fse)
139
139
if (fse -> list )
140
140
fse = fse -> list ;
141
141
142
- InterlockedIncrement (& (fse -> refcnt ));
142
+ InterlockedIncrement (& (fse -> u . refcnt ));
143
143
}
144
144
145
145
/*
@@ -150,7 +150,7 @@ static void fsentry_release(struct fsentry *fse)
150
150
if (fse -> list )
151
151
fse = fse -> list ;
152
152
153
- InterlockedDecrement (& (fse -> refcnt ));
153
+ InterlockedDecrement (& (fse -> u . refcnt ));
154
154
}
155
155
156
156
static int xwcstoutfn (char * utf , int utflen , const wchar_t * wcs , int wcslen )
@@ -205,11 +205,11 @@ static struct fsentry *fseentry_create_entry(struct fscache *cache, struct fsent
205
205
206
206
fse -> st_mode = file_attr_to_st_mode (fdata -> FileAttributes ,
207
207
fdata -> EaSize , buf );
208
- fse -> st_size = S_ISLNK (fse -> st_mode ) ? MAX_LONG_PATH :
208
+ fse -> u . s . st_size = S_ISLNK (fse -> st_mode ) ? MAX_LONG_PATH :
209
209
fdata -> EndOfFile .LowPart | (((off_t )fdata -> EndOfFile .HighPart ) << 32 );
210
- filetime_to_timespec ((FILETIME * )& (fdata -> LastAccessTime ), & (fse -> st_atim ));
211
- filetime_to_timespec ((FILETIME * )& (fdata -> LastWriteTime ), & (fse -> st_mtim ));
212
- filetime_to_timespec ((FILETIME * )& (fdata -> CreationTime ), & (fse -> st_ctim ));
210
+ filetime_to_timespec ((FILETIME * )& (fdata -> LastAccessTime ), & (fse -> u . s . st_atim ));
211
+ filetime_to_timespec ((FILETIME * )& (fdata -> LastWriteTime ), & (fse -> u . s . st_mtim ));
212
+ filetime_to_timespec ((FILETIME * )& (fdata -> CreationTime ), & (fse -> u . s . st_ctim ));
213
213
214
214
return fse ;
215
215
}
@@ -579,10 +579,10 @@ int fscache_lstat(const char *filename, struct stat *st)
579
579
st -> st_rdev = 0 ;
580
580
st -> st_nlink = 1 ;
581
581
st -> st_mode = fse -> st_mode ;
582
- st -> st_size = fse -> st_size ;
583
- st -> st_atim = fse -> st_atim ;
584
- st -> st_mtim = fse -> st_mtim ;
585
- st -> st_ctim = fse -> st_ctim ;
582
+ st -> st_size = fse -> u . s . st_size ;
583
+ st -> st_atim = fse -> u . s . st_atim ;
584
+ st -> st_mtim = fse -> u . s . st_mtim ;
585
+ st -> st_ctim = fse -> u . s . st_ctim ;
586
586
587
587
/* don't forget to release fsentry */
588
588
fsentry_release (fse );
0 commit comments