[or-cvs] clean up a few more bugs

Roger Dingledine arma at seul.org
Mon Mar 29 19:57:52 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	dns.c test.c 
Log Message:
clean up a few more bugs


Index: dns.c
===================================================================
RCS file: /home/or/cvsroot/src/or/dns.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- dns.c	29 Mar 2004 19:51:39 -0000	1.71
+++ dns.c	29 Mar 2004 19:57:50 -0000	1.72
@@ -10,6 +10,8 @@
 #include "or.h"
 #include "tree.h"
 
+extern or_options_t options; /* command-line and config-file options */
+
 #define MAX_ADDRESSLEN 256
 
 #define MAX_DNSWORKERS 50

Index: test.c
===================================================================
RCS file: /home/or/cvsroot/src/or/test.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- test.c	29 Mar 2004 19:50:59 -0000	1.67
+++ test.c	29 Mar 2004 19:57:50 -0000	1.68
@@ -15,6 +15,8 @@
 #include "or.h"
 #include "../common/test.h"
 
+extern or_options_t options;
+
 int have_failed = 0;
 
 /* These functions are file-local, but are exposed so we can test. */
@@ -760,7 +762,6 @@
   test_assert(router_dump_router_to_string(buf, 2048, &r2, pk1)>0);
   cp = buf;
   test_eq(dirserv_add_descriptor((const char**)&cp), 1);
-  extern or_options_t options;
   options.Nickname = "DirServer";
   test_assert(!dirserv_dump_directory_to_string(buf,8192,pk3));
   cp = buf;



More information about the tor-commits mailing list