]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix a warning in protover.
authorNick Mathewson <nickm@torproject.org>
Mon, 26 Sep 2016 18:03:31 +0000 (11:03 -0700)
committerNick Mathewson <nickm@torproject.org>
Mon, 26 Sep 2016 18:03:31 +0000 (11:03 -0700)
src/or/protover.c

index 74fc3d0f74bced34245a644b35ce1063abbbfe59..9e0391a410cb1a2a83c57ac3b0320aecb6c9a719 100644 (file)
@@ -343,7 +343,7 @@ encode_protocol_list(const smartlist_t *sl)
 
 /* We treat any protocol list with more than this many subprotocols in it
  * as a DoS attempt. */
-const int MAX_PROTOCOLS_TO_EXPAND = (1<<16);
+static const int MAX_PROTOCOLS_TO_EXPAND = (1<<16);
 
 /** Voting helper: Given a list of proto_entry_t, return a newly allocated
  * smartlist of newly allocated strings, one for each included protocol