diff options
author | Roger Dingledine <arma@torproject.org> | 2004-10-14 03:31:40 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-10-14 03:31:40 +0000 |
commit | 89280e6c2012de729a41dcea8fe6ba0d4d0a5530 (patch) | |
tree | 346f12b16d32a8b5cc1573c908dced66f1e5b52e /src/or/routerlist.c | |
parent | 1c9426d6e027d4a7789471691ad1703b05f60fad (diff) | |
download | tor-89280e6c2012de729a41dcea8fe6ba0d4d0a5530.tar.gz tor-89280e6c2012de729a41dcea8fe6ba0d4d0a5530.zip |
rename addr to address to we avoid this bug later
svn:r2488
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 6c798c33cb..7ca2e903ac 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1113,21 +1113,21 @@ int router_update_status_from_smartlist(routerinfo_t *router, return 0; } -void add_trusted_dir_server(const char *addr, uint16_t port, const char *digest) +void add_trusted_dir_server(const char *address, uint16_t port, const char *digest) { trusted_dir_server_t *ent; uint32_t a; if (!trusted_dir_servers) trusted_dir_servers = smartlist_create(); - if (tor_lookup_hostname(addr, &a)) { + if (tor_lookup_hostname(address, &a)) { log_fn(LOG_WARN, "Unable to lookup address for directory server at %s", - addr); + address); return; } ent = tor_malloc(sizeof(trusted_dir_server_t)); - ent->address = tor_strdup(addr); + ent->address = tor_strdup(address); ent->addr = ntohl(a); ent->dir_port = port; ent->is_running = 1; |