summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-02-27 10:20:15 +0100
committerNick Mathewson <nickm@torproject.org>2016-02-27 10:20:15 +0100
commitd5cbc21ad1138bb40e636851042a686784e7d786 (patch)
treedd972e653acbce182043c99b5fbde00b7ae68ab3 /src
parent0a276947ba6a04d303f59630b744045459d94504 (diff)
downloadtor-d5cbc21ad1138bb40e636851042a686784e7d786.tar.gz
tor-d5cbc21ad1138bb40e636851042a686784e7d786.zip
Fix an unused-variable warning
Diffstat (limited to 'src')
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 5713235085..2bb2c2b766 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;