Commit 7118c617 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

clean up a few more bugs


svn:r1365
parent 155c777a
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#include "or.h" #include "or.h"
#include "tree.h" #include "tree.h"
extern or_options_t options; /* command-line and config-file options */
#define MAX_ADDRESSLEN 256 #define MAX_ADDRESSLEN 256
#define MAX_DNSWORKERS 50 #define MAX_DNSWORKERS 50
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
#include "or.h" #include "or.h"
#include "../common/test.h" #include "../common/test.h"
extern or_options_t options;
int have_failed = 0; int have_failed = 0;
/* These functions are file-local, but are exposed so we can test. */ /* These functions are file-local, but are exposed so we can test. */
...@@ -760,7 +762,6 @@ test_dir_format() ...@@ -760,7 +762,6 @@ test_dir_format()
test_assert(router_dump_router_to_string(buf, 2048, &r2, pk1)>0); test_assert(router_dump_router_to_string(buf, 2048, &r2, pk1)>0);
cp = buf; cp = buf;
test_eq(dirserv_add_descriptor((const char**)&cp), 1); test_eq(dirserv_add_descriptor((const char**)&cp), 1);
extern or_options_t options;
options.Nickname = "DirServer"; options.Nickname = "DirServer";
test_assert(!dirserv_dump_directory_to_string(buf,8192,pk3)); test_assert(!dirserv_dump_directory_to_string(buf,8192,pk3));
cp = buf; cp = buf;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment