[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Use arguments to routerlist_update_from_runningrouters corr...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] Use arguments to routerlist_update_from_runningrouters corr...
- From: nickm@seul.org (Nick Mathewson)
- Date: Wed, 30 Jun 2004 12:48:38 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Wed, 30 Jun 2004 12:48:44 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv24469/src/or
Modified Files:
routerlist.c
Log Message:
Use arguments to routerlist_update_from_runningrouters correctly
Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerlist.c,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- routerlist.c 25 Jun 2004 00:29:31 -0000 1.87
+++ routerlist.c 30 Jun 2004 16:48:36 -0000 1.88
@@ -643,11 +643,11 @@
int n_routers, n_names, i, j, running;
routerinfo_t *router;
const char *name;
- if (!routerlist)
+ if (!list)
return;
- if (routerlist->published_on >= rr->published_on)
+ if (list->published_on >= rr->published_on)
return;
- if (routerlist->running_routers_updated_on >= rr->published_on)
+ if (list->running_routers_updated_on >= rr->published_on)
return;
n_routers = smartlist_len(list->routers);
@@ -664,7 +664,7 @@
}
router->is_running = 1; /* arma: is this correct? */
}
- routerlist->running_routers_updated_on = rr->published_on;
+ list->running_routers_updated_on = rr->published_on;
/* XXXX008 Should there also be a list of which are down, so that we
* don't mark merely unknown routers as down? */
}