]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make testing rend1_payload variables static
authorNick Mathewson <nickm@torproject.org>
Mon, 25 Sep 2017 17:26:39 +0000 (13:26 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 25 Sep 2017 17:26:43 +0000 (13:26 -0400)
This fixes a clang warning.

src/test/test_hs_service.c

index 859476b703627c3140d1c09b19c7f6228f6c05c8..9494739b329f75706a2573cf8ce80fc86053c0af 100644 (file)
@@ -1370,8 +1370,8 @@ test_revision_counter_state(void *arg)
 }
 
 /** Global vars used by test_rendezvous1_parsing() */
-char rend1_payload[RELAY_PAYLOAD_SIZE];
-size_t rend1_payload_len = 0;
+static char rend1_payload[RELAY_PAYLOAD_SIZE];
+static size_t rend1_payload_len = 0;
 
 /** Mock for relay_send_command_from_edge() to send a RENDEZVOUS1 cell. Instead
  *  of sending it to the network, instead save it to the global `rend1_payload`