commit eb856a3e51e14690ede533dd84bef48ae818eefe Author: Nick Mathewson nickm@torproject.org Date: Mon Jul 9 11:17:23 2018 -0400
strcasecmp should not take a size_t argument --- src/lib/string/compat_string.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/string/compat_string.h b/src/lib/string/compat_string.h index 5879c28fc..4726d2b5b 100644 --- a/src/lib/string/compat_string.h +++ b/src/lib/string/compat_string.h @@ -22,8 +22,8 @@ static inline int strncasecmp(const char *a, const char *b, size_t n) { } #endif #ifndef HAVE_STRCASECMP -static inline int strcasecmp(const char *a, const char *b, size_t n); -static inline int strcasecmp(const char *a, const char *b, size_t n) { +static inline int strcasecmp(const char *a, const char *b); +static inline int strcasecmp(const char *a, const char *b) { return _stricmp(a,b); } #endif
tor-commits@lists.torproject.org