[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r9578: Try to fix mingw compile error reported by Li-Hui Zhou. (in tor/trunk: . src/common)



Author: nickm
Date: 2007-02-13 11:36:14 -0500 (Tue, 13 Feb 2007)
New Revision: 9578

Modified:
   tor/trunk/
   tor/trunk/src/common/compat.c
Log:
 r11791@catbus:  nickm | 2007-02-13 11:36:07 -0500
 Try to fix mingw compile error reported by Li-Hui Zhou.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r11791] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/common/compat.c
===================================================================
--- tor/trunk/src/common/compat.c	2007-02-13 04:22:27 UTC (rev 9577)
+++ tor/trunk/src/common/compat.c	2007-02-13 16:36:14 UTC (rev 9578)
@@ -231,10 +231,10 @@
   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: