]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make check-spaces happy.
authorGeorge Kadianakis <desnacked@gmail.com>
Sun, 11 Sep 2011 21:34:36 +0000 (23:34 +0200)
committerGeorge Kadianakis <desnacked@gmail.com>
Sun, 11 Sep 2011 21:34:36 +0000 (23:34 +0200)
src/common/util.c
src/or/circuitbuild.c
src/or/config.c
src/or/transports.c
src/or/transports.h

index 5fc2cbeabc49156f6da548c400a691bdbe9b1f1e..502840bc3e2446c32d9acd73e2108476c8d27298 100644 (file)
@@ -3193,9 +3193,11 @@ tor_spawn_background(const char *const filename, int *stdout_read,
  *
  * Returns:
  * IO_STREAM_CLOSED: If the stream is closed.
- * IO_STREAM_EAGAIN: If there is nothing to read and we should check back later.
+ * IO_STREAM_EAGAIN: If there is nothing to read and we should check back
+ *  later.
  * IO_STREAM_TERM: If something is wrong with the stream.
- * IO_STREAM_OKAY: If everything went okay and we got a string in <b>buf_out</b>. */
+ * IO_STREAM_OKAY: If everything went okay and we got a string
+ *  in <b>buf_out</b>. */
 enum stream_status
 get_string_from_pipe(FILE *stream, char *buf_out, size_t count)
 {
index 7338e243080a167d10cbfaadf660a510599b926d..b4c234301e8a34d3ff68f6ba8de4eec3c80533a7 100644 (file)
@@ -4695,15 +4695,15 @@ transport_resolve_conflicts(transport_t *t)
     } else { /* same name but different addrport */
       if (t_tmp->marked_for_removal) { /* marked for removal */
         log_warn(LD_GENERAL, "You tried to add transport '%s' at '%s:%u' but "
-                 "there was already a transport marked for deletion at '%s:%u'."
-                 "We deleted the old transport and registered the new one.",
-                 t->name, fmt_addr(&t->addr), t->port,
+                 "there was already a transport marked for deletion at "
+                 "'%s:%u'. We deleted the old transport and registered the "
+                 "new one.", t->name, fmt_addr(&t->addr), t->port,
                  fmt_addr(&t_tmp->addr), t_tmp->port);
         smartlist_remove(transport_list, t_tmp);
         transport_free(t_tmp);
       } else { /* *not* marked for removal */
-        log_warn(LD_GENERAL, "You tried to add transport '%s' at '%s:%u' which "
-                 "already exists at '%s:%u'. Skipping.", t->name,
+        log_warn(LD_GENERAL, "You tried to add transport '%s' at '%s:%u' "
+                 "which already exists at '%s:%u'. Skipping.", t->name,
                  fmt_addr(&t->addr), t->port,
                  fmt_addr(&t_tmp->addr), t_tmp->port);
         return -1;
index 58668b1734d7a2dee35bf9fa5a6a74ef6c805c2e..df06739bc75657383bc4e677b1735b520e7a8c7e 100644 (file)
@@ -1245,7 +1245,6 @@ options_act(or_options_t *old_options)
     rep_hist_load_mtbf_data(time(NULL));
   }
 
-
   mark_transport_list();
   pt_prepare_proxy_list_for_config_read();
   if (options->ClientTransportPlugin) {
@@ -5892,11 +5891,13 @@ save_transport_to_state(const char *transport,
 
     /* if transport in state has the same address as this one, life is good */
     if (!strcmp(prev_bindaddr, transport_addrport)) {
-      log_warn(LD_CONFIG, "Transport seems to have spawned on its usual address:port.");
+      log_warn(LD_CONFIG, "Transport seems to have spawned on its usual "
+               "address:port.");
       goto done;
     } else { /* addrport in state is different than the one we got */
-      log_warn(LD_CONFIG, "Transport seems to have spawned on different address:port."
-                "Let's update the state file with the new address:port");
+      log_warn(LD_CONFIG, "Transport seems to have spawned on different "
+               "address:port. Let's update the state file with the new "
+               "address:port");
       tor_free(transport_line->value); /* free the old line */
       tor_asprintf(&transport_line->value, "%s %s:%d", transport,
                    fmt_addr(addr),
index 6d1ddebe5d357d7229e98a3ac38f2f7782d3e436..01cbfca9df7ff01a3a72311a09f512803b252b5a 100644 (file)
@@ -13,7 +13,8 @@
 #include "transports.h"
 #include "util.h"
 
-static void set_managed_proxy_environment(char ***envp, const managed_proxy_t *mp);
+static void set_managed_proxy_environment(char ***envp,
+                                          const managed_proxy_t *mp);
 static INLINE int proxy_configuration_finished(const managed_proxy_t *mp);
 
 static void managed_proxy_destroy(managed_proxy_t *mp);
@@ -495,7 +496,6 @@ proxy_configuration_finished(const managed_proxy_t *mp)
           mp->conf_state == PT_PROTO_BROKEN);
 }
 
-
 /** This function is called when a proxy sends an {S,C}METHODS DONE message. */
 static void
 handle_methods_done(const managed_proxy_t *mp)
@@ -863,10 +863,12 @@ set_managed_proxy_environment(char ***envp, const managed_proxy_t *mp)
   if (mp->is_server) {
     bindaddr = get_bindaddr_for_proxy(mp);
 
-    tor_asprintf(tmp++, "TOR_PT_ORPORT=127.0.0.1:%d", options->ORPort); /* XXX temp */
+    /* XXX temp */
+    tor_asprintf(tmp++, "TOR_PT_ORPORT=127.0.0.1:%d", options->ORPort);
     tor_asprintf(tmp++, "TOR_PT_SERVER_BINDADDR=%s", bindaddr);
     tor_asprintf(tmp++, "TOR_PT_SERVER_TRANSPORTS=%s", transports_to_launch);
-    tor_asprintf(tmp++, "TOR_PT_EXTENDED_SERVER_PORT=127.0.0.1:4200"); /* XXX temp*/
+    /* XXX temp*/
+    tor_asprintf(tmp++, "TOR_PT_EXTENDED_SERVER_PORT=127.0.0.1:4200");
   } else {
     tor_asprintf(tmp++, "TOR_PT_CLIENT_TRANSPORTS=%s", transports_to_launch);
   }
@@ -952,7 +954,6 @@ free_execve_args(char **arg)
   tor_free(arg);
 }
 
-
 /** Tor will read its config, prepare the managed proxy list so that
  *  proxies that are not used in the new config will shutdown, and
  *  proxies that need to spawn more transports will do so. */
index 48b7839cfb08b1a60cb5885551b16f15ea9ac412..57bfb5ca17732bc3c35f0f3a3fce8b1c8ff91a2a 100644 (file)
@@ -63,7 +63,8 @@ typedef struct {
    * torrc. */
   unsigned int got_hup : 1;
 
-  smartlist_t *transports_to_launch; /* transports to-be-launched by this proxy */
+  /* transports to-be-launched by this proxy */
+  smartlist_t *transports_to_launch;
 
   /* The 'transports' list contains all the transports this proxy has
      launched.