]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Re-normalize whitespace; make "make check-spaces" happy
authorNick Mathewson <nickm@torproject.org>
Sat, 5 Feb 2005 21:42:46 +0000 (21:42 +0000)
committerNick Mathewson <nickm@torproject.org>
Sat, 5 Feb 2005 21:42:46 +0000 (21:42 +0000)
svn:r3566

src/or/config.c
src/or/directory.c
src/or/main.c

index 9a051cef22cbc57d458e02095bf7fd028ab858f9..0c90b00d4478fcbde5821f376fba94b87ee296d8 100644 (file)
@@ -512,7 +512,7 @@ static config_var_t *config_find_option(const char *key)
 {
   int i;
   size_t keylen = strlen(key);
-  if(!keylen)
+  if (!keylen)
     return NULL; /* if they say "--" on the commandline, it's not an option */
   /* First, check for an exact (case-insensitive) match */
   for (i=0; config_vars[i].name; ++i) {
@@ -1157,7 +1157,7 @@ validate_ports_csv(smartlist_t *sl, char *name) {
   int result = 0;
   tor_assert(name);
 
-  if(!sl)
+  if (!sl)
     return 0;
 
   SMARTLIST_FOREACH(sl, const char *, cp,
index 98cf78a5d063d433a3c896fccb40bad7756906ca..29e86d7620bb5de04ff7096b525a59a512c50791 100644 (file)
@@ -188,9 +188,9 @@ directory_get_from_dirserver(uint8_t purpose, const char *resource,
   else {
     log_fn(LOG_NOTICE,"No running dirservers known. Not trying. (purpose %d)",
            purpose);
-    if(directconn) {
+    if (directconn) {
       /* remember we tried them all and failed. */
-      directory_all_unreachable(time(NULL)); 
+      directory_all_unreachable(time(NULL));
     }
   }
 }
index 0891708b4a330dc251facf91a53f93f0193caab6..776111f541564ab3a720bcc8803b3a3f51232d14 100644 (file)
@@ -1061,7 +1061,7 @@ static int do_main_loop(void) {
 int
 control_signal_act(int the_signal)
 {
-  switch(the_signal)
+  switch (the_signal)
     {
     case 1:
       signal_callback(0,0,(void*)(uintptr_t)SIGHUP);