[tor-commits] [tor/master] Fix an unused-variable warning

nickm at torproject.org nickm at torproject.org
Sat Feb 27 09:20:24 UTC 2016


commit d5cbc21ad1138bb40e636851042a686784e7d786
Author: Nick Mathewson <nickm at torproject.org>
Date:   Sat Feb 27 10:20:15 2016 +0100

    Fix an unused-variable warning
---
 src/common/util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/util.c b/src/common/util.c
index 5713235..2bb2c2b 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -2056,13 +2056,13 @@ int
 check_private_dir(const char *dirname, cpd_check_t check,
                   const char *effective_user)
 {
-  int fd;
   int r;
   struct stat st;
 
   tor_assert(dirname);
 
 #ifndef _WIN32
+  int fd;
   unsigned unwanted_bits = 0;
   const struct passwd *pw = NULL;
   uid_t running_uid;



More information about the tor-commits mailing list