diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-12-17 09:03:04 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-12-17 09:03:04 -0500 |
commit | a0fad3981e9d072188c6ba19f25bdd78962330d8 (patch) | |
tree | c4fae72a67081d549a0f81e000ac3a90a8f8871f /src/lib/string | |
parent | f8dac5c900856494867996f60da848b0111aad35 (diff) | |
download | tor-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