summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-08 19:52:26 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-08 19:52:26 +0000
commit07c8b2be214cc289f691c6fa5bbb96de7412a3b5 (patch)
tree565d68271174c17f8eac5b127092ebb11a14c9f7
parent027a8cceed9103de13f2d68a7832128571f31a23 (diff)
downloadtor-07c8b2be214cc289f691c6fa5bbb96de7412a3b5.tar.gz
tor-07c8b2be214cc289f691c6fa5bbb96de7412a3b5.zip
Compile without warnings on mingw.tor-0.2.1.8-alpha
svn:r17522
-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 957629021e..217c9e9849 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -968,6 +968,7 @@ set_max_file_descriptors(rlim_t limit, int *max_out)
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 @@ static int
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 @@ log_credential_status(void)
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.