Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ZerXes
Tor
Commits
eb856a3e
Commit
eb856a3e
authored
Jul 09, 2018
by
Nick Mathewson
🎨
Browse files
strcasecmp should not take a size_t argument
parent
cec8d4aa
Changes
1
Show whitespace changes
Inline
Side-by-side
src/lib/string/compat_string.h
View file @
eb856a3e
...
@@ -22,8 +22,8 @@ static inline int strncasecmp(const char *a, const char *b, size_t n) {
...
@@ -22,8 +22,8 @@ static inline int strncasecmp(const char *a, const char *b, size_t n) {
}
}
#endif
#endif
#ifndef HAVE_STRCASECMP
#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
);
static
inline
int
strcasecmp
(
const
char
*
a
,
const
char
*
b
,
size_t
n
)
{
static
inline
int
strcasecmp
(
const
char
*
a
,
const
char
*
b
)
{
return
_stricmp
(
a
,
b
);
return
_stricmp
(
a
,
b
);
}
}
#endif
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment