[or-cvs] refactor directories a smidgen
Roger Dingledine
arma at seul.org
Mon Mar 29 22:18:07 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
directory.c
Log Message:
refactor directories a smidgen
Index: directory.c
===================================================================
RCS file: /home/or/cvsroot/src/or/directory.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- directory.c 26 Mar 2004 23:37:13 -0000 1.68
+++ directory.c 29 Mar 2004 22:18:05 -0000 1.69
@@ -20,10 +20,14 @@
void directory_initiate_command(routerinfo_t *router, int command) {
connection_t *conn;
- if (command == DIR_CONN_STATE_CONNECTING_FETCH)
- log_fn(LOG_DEBUG,"initiating directory fetch");
- else
- log_fn(LOG_DEBUG,"initiating directory upload");
+ switch(command) {
+ case DIR_CONN_STATE_CONNECTING_FETCH:
+ log_fn(LOG_DEBUG,"initiating directory fetch");
+ break;
+ case DIR_CONN_STATE_CONNECTING_UPLOAD:
+ log_fn(LOG_DEBUG,"initiating directory upload");
+ break;
+ }
if (!router) { /* i guess they didn't have one in mind for me to use */
log_fn(LOG_WARN,"No running dirservers known. Not trying.");
More information about the tor-commits
mailing list