summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2010-02-07 05:18:50 +0100
committerSebastian Hahn <sebastian@torproject.org>2010-02-10 08:40:44 +0100
commitfe1827556339130da9ade0b9e8e85952493a0aeb (patch)
tree2e8d7a04ca856bca3de977a54bb258a174f870e5 /src/or/config.c
parenta4ef33a3f887f026827e7d47e29281d8f587dfc9 (diff)
downloadtor-fe1827556339130da9ade0b9e8e85952493a0aeb.tar.gz
tor-fe1827556339130da9ade0b9e8e85952493a0aeb.zip
Add Windows version detection for Vista and 7
Vista is Windows 6.0, and 7 is Windows 6.1. Fixes bug 1097. Also fix a coding style violation.
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 8421bfaa2d..e544917ae4 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -2223,7 +2223,7 @@ resolve_my_address(int warn_severity, or_options_t *options,
if (tor_inet_aton(hostname, &in) == 0) {
/* then we have to resolve it */
explicit_ip = 0;
- if(!tor_lookup_hostname(hostname, &addr)) {
+ if (!tor_lookup_hostname(hostname, &addr)) {
uint32_t interface_ip;
if (explicit_hostname) {