diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-12-07 05:33:55 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-12-07 05:33:55 +0000 |
commit | d19648b314a1094d9b9bb198b1cb62251420881e (patch) | |
tree | 4701bf5814c18730131654e715ca79c5edc6cb25 | |
parent | ac759adb43ee9f84892eb0dce376fee7d074351c (diff) | |
download | tor-d19648b314a1094d9b9bb198b1cb62251420881e.tar.gz tor-d19648b314a1094d9b9bb198b1cb62251420881e.zip |
Renormalize whitespace
svn:r3095
-rw-r--r-- | src/or/circuituse.c | 2 | ||||
-rw-r--r-- | src/or/rephist.c | 2 | ||||
-rw-r--r-- | src/or/test.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c index e316522d0f..5ca699388a 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -835,7 +835,7 @@ int connection_ap_handshake_attach_circuit(connection_t *conn) { if (conn->chosen_exit_name) { routerinfo_t *router = router_get_by_nickname(conn->chosen_exit_name); - if(!router) { + if (!router) { log_fn(LOG_WARN,"Requested exit point '%s' is not known. Closing.", conn->chosen_exit_name); return -1; diff --git a/src/or/rephist.c b/src/or/rephist.c index 3095ad46ac..b08150be4d 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -651,7 +651,7 @@ void rep_hist_note_used_port(uint16_t port, time_t now) { tor_assert(predicted_ports_list); tor_assert(predicted_ports_times); - if(!port) /* record nothing */ + if (!port) /* record nothing */ return; for (i = 0; i < smartlist_len(predicted_ports_list); ++i) { diff --git a/src/or/test.c b/src/or/test.c index 2fd6eb1bcb..4cbdf1bca6 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -39,7 +39,7 @@ setup_directory(void) #ifdef MS_WINDOWS // XXXX - tor_snprintf(temp_dir, sizeof(temp_dir), "c:\\windows\\temp\\tor_test_%d", (int)getpid()); + tor_snprintf(temp_dir, sizeof(temp_dir), "c:\\windows\\temp\\tor_test_%d", (int)getpid()); r = mkdir(temp_dir); #else tor_snprintf(temp_dir, sizeof(temp_dir), "/tmp/tor_test_%d", (int) getpid()); @@ -78,7 +78,7 @@ remove_directory(void) perror("Can't remove"); return; } - while(1) { + while (1) { size_t dlen = strlen(findData.cFileName)+strlen(temp_dir)+16; char *deleteable = tor_malloc(dlen); tor_snprintf(deleteable, dlen, "%s\\%s", temp_dir, findData.cFileName); |