]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix more madness from the split_circuitbuild merge
authorNick Mathewson <nickm@torproject.org>
Mon, 22 Oct 2012 18:36:30 +0000 (14:36 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 22 Oct 2012 18:36:30 +0000 (14:36 -0400)
src/or/circuitbuild.c
src/or/circuitbuild.h
src/or/entrynodes.c

index 5e85b3e4b316cb36b7c285f7642c1d89c1723849..1fb93bbd2c7cf3231f0068bf2d05bc595050575c 100644 (file)
@@ -993,7 +993,8 @@ pathbias_get_notice_rate(const or_options_t *options)
                                    DFLT_PATH_BIAS_NOTICE_PCT, 0, 100)/100.0;
 }
 
-static double
+/* XXXX024 I'd like to have this be static again, but entrynodes.c needs it. */
+double
 pathbias_get_disable_rate(const or_options_t *options)
 {
 // XXX: This needs tuning based on use + experimentation before we set it
@@ -2152,7 +2153,8 @@ choose_good_middle_server(uint8_t purpose,
  * If <b>state</b> is NULL, we're choosing a router to serve as an entry
  * guard, not for any particular circuit.
  */
-static const node_t *
+/* XXXX024 I'd like to have this be static again, but entrynodes.c needs it. */
+const node_t *
 choose_good_entry_server(uint8_t purpose, cpath_build_state_t *state)
 {
   const node_t *choice;
index a1d40726851e72e36a0ae4d22cb2dafb25881e11..78575afcf2cce3bbe943caa947202cd71a5b0ef1 100644 (file)
@@ -51,5 +51,9 @@ void extend_info_free(extend_info_t *info);
 const node_t *build_state_get_exit_node(cpath_build_state_t *state);
 const char *build_state_get_exit_nickname(cpath_build_state_t *state);
 
+const node_t *choose_good_entry_server(uint8_t purpose,
+                                       cpath_build_state_t *state);
+double pathbias_get_disable_rate(const or_options_t *options);
+
 #endif
 
index a9651d8651b6a2d5256a3a2a95464e4c0c4be742..edb26dc0888f8a45197967cb64ce23f6b939fa4d 100644 (file)
  **/
 
 #include "or.h"
-#include "circuitbuild.c"
+#include "circuitbuild.h"
+#include "circuitstats.h"
 #include "config.h"
+#include "confparse.h"
 #include "connection.h"
 #include "connection_or.h"
 #include "control.h"
 #include "directory.h"
 #include "entrynodes.h"
+#include "main.h"
 #include "nodelist.h"
 #include "policies.h"
 #include "router.h"