summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-10-12 17:16:25 +0000
committerNick Mathewson <nickm@torproject.org>2005-10-12 17:16:25 +0000
commitfd9bfef13bb68c38adb9bb7017c8bbf73d3bfb2c (patch)
treed5267a9e480aeeb98377ffb585c2c1dfaf1a08e4 /src/or/config.c
parenta7ca56b537e7723f528da7810561bad3d9cc9fab (diff)
downloadtor-fd9bfef13bb68c38adb9bb7017c8bbf73d3bfb2c.tar.gz
tor-fd9bfef13bb68c38adb9bb7017c8bbf73d3bfb2c.zip
Funny. I could have sworn it compiled this morning when I checked it in.
svn:r5239
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/config.c b/src/or/config.c
index c724fe12a8..7842b9c71b 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -2807,13 +2807,13 @@ config_cmp_addr_policies(addr_policy_t *a, addr_policy_t *b)
{
int r;
while (a && b) {
- if (r=((int)a->addr - (int)b->addr))
+ if ((r=((int)a->addr - (int)b->addr)))
return r;
- if (r=((int)a->msk - (int)b->msk))
+ if ((r=((int)a->msk - (int)b->msk)))
return r;
- if (r=((int)a->prt_min - (int)b->prt_min))
+ if ((r=((int)a->prt_min - (int)b->prt_min)))
return r;
- if (r=((int)a->prt_max - (int)b->prt_max))
+ if ((r=((int)a->prt_max - (int)b->prt_max)))
return r;
a = a->next;
b = b->next;