Improve naming consistency.

This commit is contained in:
Dmitry Brant 2016-08-02 09:02:40 -04:00
parent f1b702bddd
commit 6ac8f16efb

View File

@ -1124,7 +1124,7 @@ int my_write( int fd, const void *buffer, unsigned int count )
return result;
}
FILETIME getFileTime(time_t time) {
static FILETIME get_file_time(time_t time) {
FILETIME ft;
unsigned long long result = 11644473600LL;
result += time;
@ -1140,8 +1140,8 @@ int my_utime( const char *path, struct my_utimbuf * my_times )
LPCTSTR p = MRP(tpath.get());
HANDLE f = CreateFile(p, FILE_WRITE_ATTRIBUTES, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (f != INVALID_HANDLE_VALUE) {
FILETIME crTime = getFileTime(my_times->actime);
FILETIME modTime = getFileTime(my_times->modtime);
FILETIME crTime = get_file_time(my_times->actime);
FILETIME modTime = get_file_time(my_times->modtime);
SetFileTime(f, &crTime, NULL, &modTime);
CloseHandle(f);
return 0;