aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-02-13 16:36:14 +0000
committerNick Mathewson <nickm@torproject.org>2007-02-13 16:36:14 +0000
commit1c8a9d37b6e6b61e9cea7789958d3b87be98b3e7 (patch)
tree3080cf5a640ae0675f486c1dfa69088e8b9a9bf7
parenta7f1b165e407b07168028e658175e96fdd81f75b (diff)
downloadtor-1c8a9d37b6e6b61e9cea7789958d3b87be98b3e7.tar.gz
tor-1c8a9d37b6e6b61e9cea7789958d3b87be98b3e7.zip
r11791@catbus: nickm | 2007-02-13 11:36:07 -0500
Try to fix mingw compile error reported by Li-Hui Zhou. svn:r9578
-rw-r--r--src/common/compat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 38f835c920..697a32c091 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -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: