diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-22 14:11:37 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-22 14:11:37 -0400 |
commit | 1b93b065fc3eb52fe5674d6df05c71c505ed1ef3 (patch) | |
tree | 2593f100e6f87a51f6c924e100c62342dbe80f26 /src/lib/string | |
parent | 405fa42e8a835de394503231a85258972a65bd89 (diff) | |
download | tor-1b93b065fc3eb52fe5674d6df05c71c505ed1ef3.tar.gz tor-1b93b065fc3eb52fe5674d6df05c71c505ed1ef3.zip |
Make an inline static so we can build with coverage enabled.
Diffstat (limited to 'src/lib/string')
-rw-r--r-- | src/lib/string/compat_ctype.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/string/compat_ctype.h b/src/lib/string/compat_ctype.h index 3fde6eaf8c..530a10270f 100644 --- a/src/lib/string/compat_ctype.h +++ b/src/lib/string/compat_ctype.h @@ -31,10 +31,10 @@ extern const uint8_t TOR_TOLOWER_TABLE[]; #define TOR_TOLOWER(c) (TOR_TOLOWER_TABLE[(uint8_t)c]) #define TOR_TOUPPER(c) (TOR_TOUPPER_TABLE[(uint8_t)c]) -inline int hex_decode_digit(char c); +static inline int hex_decode_digit(char c); /** Helper: given a hex digit, return its value, or -1 if it isn't hex. */ -inline int +static inline int hex_decode_digit(char c) { switch (c) { |