[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Renormalize whitespace
Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv20059/src/or
Modified Files:
circuituse.c rephist.c test.c
Log Message:
Renormalize whitespace
Index: circuituse.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/circuituse.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- circuituse.c 5 Dec 2004 07:10:08 -0000 1.35
+++ circuituse.c 7 Dec 2004 05:33:55 -0000 1.36
@@ -835,7 +835,7 @@
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;
Index: rephist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/rephist.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- rephist.c 5 Dec 2004 07:10:08 -0000 1.49
+++ rephist.c 7 Dec 2004 05:33:55 -0000 1.50
@@ -651,7 +651,7 @@
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) {
Index: test.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/test.c,v
retrieving revision 1.158
retrieving revision 1.159
diff -u -d -r1.158 -r1.159
--- test.c 7 Dec 2004 05:31:38 -0000 1.158
+++ test.c 7 Dec 2004 05:33:55 -0000 1.159
@@ -39,7 +39,7 @@
#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 @@
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);