[or-cvs] r17522: {tor} Compile without warnings on mingw. (tor/trunk/src/common)

nickm at seul.org nickm at seul.org
Mon Dec 8 19:52:29 UTC 2008


Author: nickm
Date: 2008-12-08 14:52:26 -0500 (Mon, 08 Dec 2008)
New Revision: 17522

Modified:
   tor/trunk/src/common/compat.c
Log:
Compile without warnings on mingw.

Modified: tor/trunk/src/common/compat.c
===================================================================
--- tor/trunk/src/common/compat.c	2008-12-08 19:25:18 UTC (rev 17521)
+++ tor/trunk/src/common/compat.c	2008-12-08 19:52:26 UTC (rev 17522)
@@ -968,6 +968,7 @@
   return 0;
 }
 
+#ifndef MS_WINDOWS
 /** Log details of current user and group credentials. Return 0 on
  * success. Logs and return -1 on failure.
  */
@@ -975,7 +976,6 @@
 log_credential_status(void)
 {
 #define CREDENTIAL_LOG_LEVEL LOG_INFO
-#ifndef MS_WINDOWS
   /* Real, effective and saved UIDs */
   uid_t ruid, euid, suid;
   /* Read, effective and saved GIDs */
@@ -1062,10 +1062,10 @@
 
     return retval;
   }
-#endif
 
   return 0;
 }
+#endif
 
 /** Call setuid and setgid to run as <b>user</b> and switch to their
  * primary group.  Return 0 on success.  On failure, log and return -1.



More information about the tor-commits mailing list