]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
channel: Make channel_matches_target_addr_for_extend() static
authorteor <teor@torproject.org>
Wed, 15 Apr 2020 02:08:46 +0000 (12:08 +1000)
committerteor <teor@torproject.org>
Wed, 29 Apr 2020 12:43:09 +0000 (22:43 +1000)
It isn't used outside channel.c.

Part of 33817.

src/core/or/channel.c
src/core/or/channel.h

index 75054aa0c4daaa547db4b8f6ac9fa423e3938665..89804826a307060f2f2f6356f9e6e1731ceb916c 100644 (file)
 
 #include "core/or/cell_queue_st.h"
 
+/* Static function prototypes */
+
+static int channel_matches_target_addr_for_extend(channel_t *chan,
+                                                  const tor_addr_t *target);
+
 /* Global lists of channels */
 
 /* All channel_t instances */
index 49331d5d588c422565749deed819274701c9ce46..f86e77992d85d8d29a31df2187124a8fcddb89dc 100644 (file)
@@ -737,8 +737,6 @@ int channel_is_outgoing(channel_t *chan);
 void channel_mark_client(channel_t *chan);
 void channel_clear_client(channel_t *chan);
 int channel_matches_extend_info(channel_t *chan, extend_info_t *extend_info);
-int channel_matches_target_addr_for_extend(channel_t *chan,
-                                           const tor_addr_t *target);
 unsigned int channel_num_circuits(channel_t *chan);
 MOCK_DECL(void,channel_set_circid_type,(channel_t *chan,
                                         crypto_pk_t *identity_rcvd,