projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
port numbers should always be interpreted as decimal
[oweals/musl.git]
/
src
/
string
/
strncmp.c
diff --git
a/src/string/strncmp.c
b/src/string/strncmp.c
index 52ba032324a3bea7cb22e93a76295111d3a1d49e..e228843f0bb394a209b764296e1df52fc8663344 100644
(file)
--- a/
src/string/strncmp.c
+++ b/
src/string/strncmp.c
@@
-2,7
+2,7
@@
int strncmp(const char *_l, const char *_r, size_t n)
{
- const unsigned char *l=
_l, *r=
_r;
+ const unsigned char *l=
(void *)_l, *r=(void *)
_r;
if (!n--) return 0;
for (; *l && *r && n && *l == *r ; l++, r++, n--);
return *l - *r;