[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] rename addr to address to we avoid this bug later



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

Modified Files:
	routerlist.c 
Log Message:
rename addr to address to we avoid this bug later


Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerlist.c,v
retrieving revision 1.154
retrieving revision 1.155
diff -u -d -r1.154 -r1.155
--- routerlist.c	14 Oct 2004 02:47:09 -0000	1.154
+++ routerlist.c	14 Oct 2004 03:31:40 -0000	1.155
@@ -1113,21 +1113,21 @@
   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;