From 9ae1a9b6e09aa49a75ea59556d12e2d1715bc79b Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 30 Oct 2008 20:56:10 +0000 Subject: [PATCH] Fix building in windows --- libtorrent/bindings/python/src/ip_filter.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libtorrent/bindings/python/src/ip_filter.cpp b/libtorrent/bindings/python/src/ip_filter.cpp index 7ce72cf50..74ef2e89e 100644 --- a/libtorrent/bindings/python/src/ip_filter.cpp +++ b/libtorrent/bindings/python/src/ip_filter.cpp @@ -15,8 +15,8 @@ namespace { return filter.add_rule(address::from_string(start), address::from_string(end), flags); } - - int _access(ip_filter& filter, std::string addr) + + int access0(ip_filter& filter, std::string addr) { return filter.access(address::from_string(addr)); } @@ -26,8 +26,7 @@ void bind_ip_filter() { class_("ip_filter") .def("add_rule", add_rule) - .def("access", _access) + .def("access", access0) .def("export_filter", allow_threads(&ip_filter::export_filter)) ; } -