aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-12-09 05:20:02 +0000
committerNick Mathewson <nickm@torproject.org>2005-12-09 05:20:02 +0000
commit33c444584644732d2d42a82e2dac2f9b37f90f9b (patch)
treec5e4ca7d04b76e6fdf33d46ea48f23b44dc7f723 /src
parenta1bcdb2f76af22c55eb02c12c06ff0acef7c379a (diff)
downloadtor-33c444584644732d2d42a82e2dac2f9b37f90f9b.tar
tor-33c444584644732d2d42a82e2dac2f9b37f90f9b.tar.gz
For some bizarre reason, MSVC does not implement GCC extensions. Who would have thought?
svn:r5546
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 14f09fe30..2b576c2b4 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1744,8 +1744,8 @@ options_validate(or_options_t *old_options, or_options_t *options)
int result = 0;
config_line_t *cl;
addr_policy_t *addr_policy=NULL;
-#define REJECT(arg...) do { log(LOG_WARN, LD_CONFIG, arg); result = -1; } while (0)
-#define COMPLAIN(arg...) do { log(LOG_WARN, LD_CONFIG, arg); } while (0)
+#define REJECT(arg) do { log(LOG_WARN, LD_CONFIG, arg); result = -1; } while (0)
+#define COMPLAIN(arg) do { log(LOG_WARN, LD_CONFIG, arg); } while (0)
if (options->ORPort < 0 || options->ORPort > 65535)
REJECT("ORPort option out of bounds.");
@@ -1773,7 +1773,11 @@ options_validate(or_options_t *old_options, or_options_t *options)
if (!is_internal_IP(addr, 1) &&
(!old_options || !config_lines_eq(old_options->SocksListenAddress,
options->SocksListenAddress))) {
- COMPLAIN("You specified a public address '%s' for a SOCKS listener. Other people on the Internet might find your computer and use it as an open SOCKS proxy. Please don't allow this unless you have a good reason.", address);
+ warn(LD_CONFIG,
+ "You specified a public address '%s' for a SOCKS listener. Other "
+ "people on the Internet might find your computer and use it as "
+ "an open SOCKS proxy. Please don't allow this unless you have "
+ "a good reason.", address);
}
tor_free(address);
}