mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Merge remote-tracking branch 'tor-github/pr/1221' into combined31343_31374_029
This commit is contained in:
commit
2bc8989d83
2 changed files with 5 additions and 2 deletions
4
changes/ticket31374
Normal file
4
changes/ticket31374
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
o Minor bugfixes (compilation warning):
|
||||||
|
- Fix a compilation warning on Windows about casting a function
|
||||||
|
pointer for GetTickCount64(). Fixes bug 31374; bugfix on
|
||||||
|
0.2.9.1-alpha.
|
|
@ -443,7 +443,7 @@ monotime_init_internal(void)
|
||||||
|
|
||||||
HANDLE h = load_windows_system_library(TEXT("kernel32.dll"));
|
HANDLE h = load_windows_system_library(TEXT("kernel32.dll"));
|
||||||
if (h) {
|
if (h) {
|
||||||
GetTickCount64_fn = (GetTickCount64_fn_t)
|
GetTickCount64_fn = (GetTickCount64_fn_t) (void(*)(void))
|
||||||
GetProcAddress(h, "GetTickCount64");
|
GetProcAddress(h, "GetTickCount64");
|
||||||
}
|
}
|
||||||
// FreeLibrary(h) ?
|
// FreeLibrary(h) ?
|
||||||
|
@ -654,4 +654,3 @@ monotime_coarse_absolute_msec(void)
|
||||||
return monotime_coarse_absolute_nsec() / ONE_MILLION;
|
return monotime_coarse_absolute_nsec() / ONE_MILLION;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue