[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Make it compile with VC7. It does not yet link.
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv28247
Modified Files:
config.c
Log Message:
Make it compile with VC7. It does not yet link.
Index: config.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.514
retrieving revision 1.515
diff -u -p -d -r1.514 -r1.515
--- config.c 13 Feb 2006 22:29:37 -0000 1.514
+++ config.c 18 Feb 2006 02:02:21 -0000 1.515
@@ -1888,8 +1888,10 @@ firewall_is_fascist_or(void)
int
_fascist_firewall_allows_address(uint32_t addr, uint16_t port, int dir_or_or)
{
+ addr_policy_result_t p;
+
assert(dir_or_or == 1 || dir_or_or == 2);
- addr_policy_result_t p = router_compare_addr_to_addr_policy(
+ p = router_compare_addr_to_addr_policy(
addr, port, dir_or_or == 1 ?
reachable_dir_addr_policy :
reachable_or_addr_policy);