aboutsummaryrefslogtreecommitdiff
path: root/src/lib/string
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-12-17 09:03:04 -0500
committerNick Mathewson <nickm@torproject.org>2018-12-17 09:03:04 -0500
commita0fad3981e9d072188c6ba19f25bdd78962330d8 (patch)
treec4fae72a67081d549a0f81e000ac3a90a8f8871f /src/lib/string
parentf8dac5c900856494867996f60da848b0111aad35 (diff)
downloadtor-a0fad3981e9d072188c6ba19f25bdd78962330d8.tar.gz
tor-a0fad3981e9d072188c6ba19f25bdd78962330d8.zip
Replace use of strcmp_len() with new mem_eq_token().
The strcmp_len() function was somewhat misconceived, since we're only using it to test whether a length+extent string is equal to a NUL-terminated string or not. By simplifying it and making it inlined, we should be able to make it a little faster. (It *does* show up in profiles.) Closes ticket 28856.
Diffstat (limited to 'src/lib/string')
0 files changed, 0 insertions, 0 deletions