]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make an inline static so we can build with coverage enabled.
authorNick Mathewson <nickm@torproject.org>
Fri, 22 Jun 2018 18:11:37 +0000 (14:11 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 22 Jun 2018 18:11:37 +0000 (14:11 -0400)
src/lib/string/compat_ctype.h

index 3fde6eaf8c63253cbfadc183051a121201e85545..530a10270f8673155731f532b244ff43b022fbad 100644 (file)
@@ -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) {