mirror of
https://github.com/git/git.git
synced 2026-03-13 10:23:30 +01:00
test-chmtime.c: Cast HANDLE to fix warning
Signed-off-by: Steffen Prohaska <prohaska@zib.de> Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
This commit is contained in:
committed by
Johannes Sixt
parent
8ddaf895a8
commit
f593be0480
@@ -22,7 +22,7 @@ int git_utime (const char *file_name, const struct utimbuf *times)
|
||||
|
||||
time_t_to_filetime(times->modtime, &mft);
|
||||
time_t_to_filetime(times->actime, &aft);
|
||||
if (!SetFileTime(_get_osfhandle(fh), NULL, &aft, &mft)) {
|
||||
if (!SetFileTime((HANDLE)_get_osfhandle(fh), NULL, &aft, &mft)) {
|
||||
errno = EINVAL;
|
||||
rc = -1;
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user