[or-cvs] For some bizarre reason, MSVC does not implement GCC extens...

Nick Mathewson nickm at seul.org
Fri Dec 9 05:20:06 UTC 2005


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv25046/src/or

Modified Files:
	config.c 
Log Message:
For some bizarre reason, MSVC does not implement GCC extensions. Who would have thought?

Index: config.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.455
retrieving revision 1.456
diff -u -d -r1.455 -r1.456
--- config.c	9 Dec 2005 02:46:46 -0000	1.455
+++ config.c	9 Dec 2005 05:20:02 -0000	1.456
@@ -1744,8 +1744,8 @@
   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 @@
       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);
     }



More information about the tor-commits mailing list