aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-05-09 02:00:33 +0000
committerNick Mathewson <nickm@torproject.org>2003-05-09 02:00:33 +0000
commit9ef930f21add3cb65673ef74358a00ab42487d5c (patch)
tree17d2a7426eddde3c1dcd510039ddea0e3ed3ed8c /src/or/or.h
parentc2e7b5ec3fd019cb1321829c45b6ccbc689609a0 (diff)
downloadtor-9ef930f21add3cb65673ef74358a00ab42487d5c.tar
tor-9ef930f21add3cb65673ef74358a00ab42487d5c.tar.gz
Routerinfos are no longer linked
svn:r283
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/or.h b/src/or/or.h
index cf16c22e6..8f4366d3d 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -325,10 +325,9 @@ typedef struct {
/* link info */
uint32_t bandwidth;
struct exit_policy_t *exit_policy;
-
- void *next;
} routerinfo_t;
+#define MAX_ROUTERS_IN_DIR 1024
typedef struct {
routerinfo_t **routers;
int n_routers;
@@ -811,7 +810,7 @@ int router_get_dir_from_string_impl(char *s, directory_t **dest,
crypto_pk_env_t *pkey);
routerinfo_t *router_get_entry_from_string(char **s);
int router_compare_to_exit_policy(connection_t *conn);
-void routerlist_free(routerinfo_t *list);
+void routerinfo_free(routerinfo_t *router);
#endif