diff options
Diffstat (limited to 'src/string/strncmp.c')
-rw-r--r-- | src/string/strncmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string/strncmp.c b/src/string/strncmp.c index 52ba0323..e228843f 100644 --- 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; |