mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
r11791@catbus: nickm | 2007-02-13 11:36:07 -0500
Try to fix mingw compile error reported by Li-Hui Zhou. svn:r9578
This commit is contained in:
parent
a7f1b165e4
commit
1c8a9d37b6
@ -231,10 +231,10 @@ tor_mmap_file(const char *filename)
|
||||
return &(res->base);
|
||||
win_err: {
|
||||
DWORD e = GetLastError();
|
||||
int severity = (e == ERROR_FILE_NOT_FOUND || e == PATH_NOT_FOUND) ?
|
||||
int severity = (e == ERROR_FILE_NOT_FOUND || e == ERROR_PATH_NOT_FOUND) ?
|
||||
LOG_INFO : LOG_WARN;
|
||||
char *msg = format_win32_error(e);
|
||||
log_fn(LOG_INFO, "Couldn't mmap file \"%s\": %s", filename, msg);
|
||||
log_fn(severity, LD_FS, "Couldn't mmap file \"%s\": %s", filename, msg);
|
||||
tor_free(msg);
|
||||
}
|
||||
err:
|
||||
|
Loading…
Reference in New Issue
Block a user