]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
relay: Remove a redundant function return value
authorteor <teor@torproject.org>
Wed, 18 Mar 2020 09:07:57 +0000 (19:07 +1000)
committerteor <teor@torproject.org>
Thu, 9 Apr 2020 01:00:04 +0000 (11:00 +1000)
Part of 33633.

src/feature/relay/circuitbuild_relay.c

index fa0083bdf5523f3a9ddb4b93191621b382bf67a2..a9c7378fefdc158073db8f5d7fdb5b6c567d4fd1 100644 (file)
@@ -160,10 +160,8 @@ circuit_extend_lspec_valid_helper(const extend_cell_t *ec,
  * circuit <b>circ</b> to wait for a new connection. If <b>should_launch</b>
  * is true, open a new connection. (Otherwise, we are already waiting for a
  * new connection to the same relay.)
- *
- * Always returns 0.
  */
-static int
+static void
 circuit_open_connection_for_extend(const extend_cell_t *ec,
                                    struct circuit_t *circ,
                                    int should_launch)
@@ -190,11 +188,10 @@ circuit_open_connection_for_extend(const extend_cell_t *ec,
     if (!n_chan) {
       log_info(LD_CIRC,"Launching n_chan failed. Closing circuit.");
       circuit_mark_for_close(circ, END_CIRC_REASON_CONNECTFAILED);
-      return 0;
+      return;
     }
     log_debug(LD_CIRC,"connecting in progress (or finished). Good.");
   }
-  return 0;
 }
 
 /** Take the 'extend' <b>cell</b>, pull out addr/port plus the onion