aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-03-29 22:18:05 +0000
committerRoger Dingledine <arma@torproject.org>2004-03-29 22:18:05 +0000
commitce08baba1b56b3d5ff540c116fafa663dc07b9a5 (patch)
treeee869eb93bb5b03a8065149cab854e20741f9554 /src
parent9723061dd902a25db97afd45c2371efa4cebfe64 (diff)
downloadtor-ce08baba1b56b3d5ff540c116fafa663dc07b9a5.tar
tor-ce08baba1b56b3d5ff540c116fafa663dc07b9a5.tar.gz
refactor directories a smidgen
svn:r1371
Diffstat (limited to 'src')
-rw-r--r--src/or/directory.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index b70fa55be..bb38df3ac 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -20,10 +20,14 @@ extern int has_fetched_directory;
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.");